From c6bd14d15fb6a4a49b685fd7d86f4b0df9b2ce67 Mon Sep 17 00:00:00 2001 From: Victor Turgeon Date: Tue, 18 Oct 2022 12:19:56 -0400 Subject: [PATCH] Put to Patch --- .../GrossesMitainesAPI/Controllers/ProductController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();