display distance traveled.

This commit is contained in:
DESKTOP-GENO133\IvanPlex
2024-03-10 08:02:44 -06:00
parent def9a7770f
commit 00b3145e79
2 changed files with 4 additions and 3 deletions

View File

@@ -24,7 +24,8 @@ namespace CarCareTracker.Helper
{
MonthId = x.Key,
MonthName = CultureInfo.CurrentCulture.DateTimeFormat.GetMonthName(x.Key),
Cost = 0
Cost = 0,
DistanceTraveled = x.Sum(y=>y.DistanceTraveled)
});
}
public IEnumerable<CostForVehicleByMonth> GetServiceRecordSum(List<ServiceRecord> serviceRecords, int year = 0)