// GET: InputFileHandler/Create public ActionResult Create() { var fileReaderService = new FileReaderService(); fileReaderService.PopulateCSVToEntity(); return(View()); }
// GET: InputFileHandler public ActionResult Index() { //return DoTask(_ => //{ var fileReaderService = new FileReaderService(); fileReaderService.PopulateCSVToEntity(); var model = new DetailsModel(); return(View(model)); //}); //Task.Factory.StartNew(context => //{ // try // { // var fileReaderService = new FileReaderService(); // fileReaderService.PopulateCSVToEntity(); // var model = new DetailsModel(); // return View(model); // } // catch (Exception ex) // { // // log and return an error response rather than hitting the application's // // error handler - we've dealt with it here. // //_logger.Error(ex, errorMessage, args); // //return new (500 /*server error*/); // } //}); }