public ActionResult Upload(HttpPostedFileBase file) { var filename = WriteFileToFileSystem(file); csvProcessor.ProcessCsv(filename); ViewBag.UploadSuccess = true; return(View("Index")); }