added missed fuel up feature.

This commit is contained in:
DESKTOP-GENO133\IvanPlex
2024-01-10 05:36:42 -07:00
parent 7bfbb49efb
commit fba2a6dc68
7 changed files with 22 additions and 6 deletions

View File

@@ -15,6 +15,7 @@
public decimal Gallons { get; set; }
public decimal Cost { get; set; }
public bool IsFillToFull { get; set; } = true;
public bool MissedFuelUp { get; set; } = false;
public List<UploadedFiles> Files { get; set; } = new List<UploadedFiles>();
}
}

View File

@@ -15,6 +15,7 @@
public decimal Gallons { get; set; }
public decimal Cost { get; set; }
public bool IsFillToFull { get; set; } = true;
public bool MissedFuelUp { get; set; } = false;
public List<UploadedFiles> Files { get; set; } = new List<UploadedFiles>();
public GasRecord ToGasRecord() { return new GasRecord {
Id = Id,
@@ -24,7 +25,8 @@
Mileage = Mileage,
VehicleId = VehicleId,
Files = Files,
IsFillToFull = IsFillToFull
IsFillToFull = IsFillToFull,
MissedFuelUp = MissedFuelUp
}; }
}
}