Esempio n. 1
0
        public ActionResult Edit(int InvoiceID)
        {
            var model = new Control.UI.Models.InvoiceViewModel();

            context = new DALContext();
            Invoice retorno = new Invoice();

            try
            {
                retorno       = context.Invoices.Find(p => p.Id == InvoiceID);
                model.Invoice = retorno;
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return(View("Create", model));
        }
Esempio n. 2
0
 public ActionResult Create(Control.UI.Models.InvoiceViewModel Invoice)
 {
     return(View("Create", Invoice));
 }