Exemplo n.º 1
0
        public ActionResult Import()
        {
            var model = new InvoiceImportModel();

            model.Tab = "Invoice";

            return(this.View(model));
        }
Exemplo n.º 2
0
        public ActionResult Import(HttpPostedFileBase file)
        {
            var model = new InvoiceImportModel();

            model.Tab = "Invoice";

            model.Invoices = ImportHelper.ImportInvoices(this, file);

            if (this.ModelState.IsValid)
            {
                return(this.View("ImportSuccess", model));
            }

            return(this.View(model));
        }