Put to Patch

This commit is contained in:
Victor Turgeon 2022-10-18 12:19:56 -04:00
parent 44086054b3
commit c6bd14d15f

View File

@ -54,8 +54,8 @@ public class ProductController : ControllerBase {
}
[EnableCors("_myAllowSpecificOrigins")]
[HttpPut(Name = "Product")]
public ActionResult<Product> Put(Product prod) {
[HttpPatch(Name = "Product")]
public ActionResult<Product> Patch(Product prod) {
try {
_context.Products.Update(prod);
_context.SaveChanges();