Add vehicle filtering for fuellog and vehicle service

This commit is contained in:
2015-10-26 10:09:12 -04:00
parent ad0b04695d
commit 9177a8dbb3
10 changed files with 63 additions and 9 deletions
@@ -23,6 +23,7 @@ namespace MileageTraker.Web.ViewModels.VehicleService
public string Year { get; set; }
public string Month { get; set; }
public string MonthRange { get; set; }
public string VehicleId { get; set; }
public VehicleServiceResultsViewModel(
IEnumerable<VehicleServiceViewModel> serviceItems,
@@ -36,6 +37,7 @@ namespace MileageTraker.Web.ViewModels.VehicleService
Year = query.Year.HasValue ? query.Year.Value.ToString(CultureInfo.InvariantCulture) : string.Empty;
Month = query.Month.HasValue ? query.Month.Value.ToString(CultureInfo.InvariantCulture) : string.Empty;
MonthRange = query.MonthRange.HasValue ? query.MonthRange.Value.ToString(CultureInfo.InvariantCulture) : string.Empty;
VehicleId = query.VehicleId;
}
}
}