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