Exemple #1
0
 public async Task <IActionResult> OnPostDeleteOrderByIdAsync(int orderId)
 {
     if (await _orderApi.DeleteOrderById(orderId))
     {
         return(RedirectToPage());
     }
     return(RedirectToPage(new { orderDeleteError = "Failed to delete order" }));
 }