Track source filename for FuelLog

This commit is contained in:
2015-09-26 23:00:02 -04:00
parent a6ea6df177
commit a2368f5e69
4 changed files with 7 additions and 1 deletions
+3
View File
@@ -129,6 +129,9 @@ namespace MileageTraker.Web.Controllers
try
{
var fuelLogs = FuelmanCsvImporter.Import(fileInfo);
foreach (var fuelLog in fuelLogs)
fuelLog.SourceFilename = fileName;
// todo: delete file?
var fls = (from fuelLog in fuelLogs