Merge branch 'react-version' of https://github.com/MarcEricMartel/420-5DW-HY-TP into react-version

This commit is contained in:
MarcEricMartel
2022-10-21 14:52:30 -07:00
10 changed files with 471 additions and 120 deletions

View File

@@ -58,8 +58,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();