Exemplo n.º 1
0
 public ViewResult Import(HttpPostedFileBase uploadFile, AccountInfoImportModel importModel)
 {
     if (uploadFile.ContentLength > 0)
     {
         _accountInfoService.ImportFile(uploadFile.InputStream, importModel.AccountInfoYear);
     }
     ViewData["Message"] = "Filen er importert";
     return(View("Import", importModel));
 }
Exemplo n.º 2
0
 public ViewResult Import(HttpPostedFileBase uploadFile, AccountInfoImportModel importModel)
 {
     if (uploadFile.ContentLength > 0)
     {
         _accountInfoService.ImportFile(uploadFile.InputStream, importModel.AccountInfoYear);
     }
     ViewData["Message"] = "Filen er importert";
     return View("Import", importModel );
 }
Exemplo n.º 3
0
        public ViewResult Import()
        {
            var model = new AccountInfoImportModel();

            return(View(model));
        }
Exemplo n.º 4
0
 public ViewResult Import()
 {
     var model = new AccountInfoImportModel();
     return View(model);
 }