예제 #1
0
 public ActionResult Delete(int id, InvoiceViewModel invoice)
 {
     try
     {
         invoicesService.Remove(id);
         return(RedirectToAction("Index"));
     }
     catch (Exception ex)
     {
         deliveryMessage.Title = "Відправлення";
         deliveryMessage.Body  = ex.Message;
         return(View("DeliveryMessage", deliveryMessage));
     }
 }