Beispiel #1
0
        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"));
        }
Beispiel #2
0
 public ActionResult Update(Invoice invoice)
 {
     invoice = _iFInvoice.Update(invoice);
     return(RedirectToAction("Index"));
 }