start work for edit product
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user