react-version #1

Merged
memartel_loc merged 290 commits from react-version into main 2023-11-04 09:48:15 -04:00
Showing only changes of commit c6bd14d15f - Show all commits

View File

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