Fuel Log Import basic functionality

This commit is contained in:
2015-09-18 13:02:15 -04:00
parent 4987215f0b
commit e3590b29e5
18 changed files with 438 additions and 59 deletions
+1 -2
View File
@@ -259,10 +259,9 @@ namespace MileageTraker.Web.Controllers
var path = Path.Combine(Server.MapPath("~/App_Data/uploads"), fileName);
viewModel.File.SaveAs(path);
IEnumerable<ImportLogViewModel> logImports;
try
{
logImports = LogImporter.Import(path);
var logImports = LogImporter.Import(path);
// todo: delete file?
return View(logImports.ToList());
}