diff --git a/GrossesMitaines/GrossesMitainesAPI/Controllers/ProductController.cs b/GrossesMitaines/GrossesMitainesAPI/Controllers/ProductController.cs index 9dfc87c..ce03481 100644 --- a/GrossesMitaines/GrossesMitainesAPI/Controllers/ProductController.cs +++ b/GrossesMitaines/GrossesMitainesAPI/Controllers/ProductController.cs @@ -54,8 +54,8 @@ public class ProductController : ControllerBase { } [EnableCors("_myAllowSpecificOrigins")] - [HttpPut(Name = "Product")] - public ActionResult Put(Product prod) { + [HttpPatch(Name = "Product")] + public ActionResult Patch(Product prod) { try { _context.Products.Update(prod); _context.SaveChanges();