예제 #1
0
 public IActionResult Delete(Guid id)
 {
     // product.product = prod;
     api.DeleteProduct(id);
     return(StatusCode(200, "Product deleted successfully"));
 }
예제 #2
0
 public IActionResult Delete(Guid id)
 {
     // product.product = prod;
     api.DeleteProduct(id);
     return(RedirectToAction("Index"));
 }