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)); } }