public ActionResult Update(Invoice invoice) { _iFService.Delete(invoice.InvoiceId); if (invoice.Services != null) { foreach (Service service in invoice.Services) { _iFService.Create(invoice.InvoiceId, service); } } invoice = _iFInvoice.Update(invoice); return(RedirectToAction("Index")); }
public ActionResult Update(Invoice invoice) { invoice = _iFInvoice.Update(invoice); return(RedirectToAction("Index")); }