Fuel Log Import basic functionality
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user