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