Put to Patch
This commit is contained in:
parent
44086054b3
commit
c6bd14d15f
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user