start work for edit product

This commit is contained in:
2025-06-28 18:39:02 -07:00
parent 67157eaae0
commit 6430ec8a16
6 changed files with 174 additions and 5 deletions
@@ -91,7 +91,7 @@ namespace MistoxWebsite.Server.Controllers {
[Route( "api/product/get" )]
[HttpPost]
public async Task<ActionResult<Product>> GetProduct( [FromBody] int productID ) {
public async Task<ActionResult<Product>> GetProduct( [FromForm] int productID ) {
try {
Product? x = await _databaseService.GetProduct(productID);
if (x != null) {