From fcd03bd904784b96c2ef3571f32c13b5b82020b8 Mon Sep 17 00:00:00 2001 From: Derek Holloway Date: Sat, 28 Jun 2025 14:54:18 -0700 Subject: [PATCH] Fix Body Type --- src/MistoxWebsite.Server/Controllers/ProductController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MistoxWebsite.Server/Controllers/ProductController.cs b/src/MistoxWebsite.Server/Controllers/ProductController.cs index a36f4a0..f9a9764 100755 --- a/src/MistoxWebsite.Server/Controllers/ProductController.cs +++ b/src/MistoxWebsite.Server/Controllers/ProductController.cs @@ -105,7 +105,7 @@ namespace MistoxWebsite.Server.Controllers { [Route( "api/product/delete" )] [HttpPost] - public async Task> DeleteProduct( [FromBody] int productID ) { + public async Task> DeleteProduct( [FromForm] int productID ) { try { await _databaseService.DeleteProduct(productID); return true;