Fix Body Type
This commit is contained in:
@@ -105,7 +105,7 @@ namespace MistoxWebsite.Server.Controllers {
|
|||||||
|
|
||||||
[Route( "api/product/delete" )]
|
[Route( "api/product/delete" )]
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
public async Task<ActionResult<bool>> DeleteProduct( [FromBody] int productID ) {
|
public async Task<ActionResult<bool>> DeleteProduct( [FromForm] int productID ) {
|
||||||
try {
|
try {
|
||||||
await _databaseService.DeleteProduct(productID);
|
await _databaseService.DeleteProduct(productID);
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user