private List <ComparisonRow> GetCurrentComparisonData() { var comparisonType = _siteComparison ? ComparisonLevelLookup.GetSiteComparisonTypeFromParameters(Parameters) : ComparisonLevelLookup.GetFleetComparisonTypeFromParameters(Parameters); var returned = GetCurrentComparisonData(comparisonType); return(returned); }
private List <FleetStatusRow> GetCurrentFleetComparison(bool siteComparison) { var comparisonType = siteComparison ? ComparisonLevelLookup.GetSiteComparisonTypeFromParameters(Parameters) : ComparisonLevelLookup.GetFleetComparisonTypeFromParameters(Parameters); var groupedData = GetSingleKeyGroupedVehicle(comparisonType); var extractedData = ExtractVehicleColumns(groupedData); var returned = extractedData.ToList(); return(returned); }
private List <FleetStatusRow> GetHistoricalComparison(bool siteComparison) { var comparisonType = siteComparison ? ComparisonLevelLookup.GetSiteComparisonTypeFromParameters(Parameters) : ComparisonLevelLookup.GetFleetComparisonTypeFromParameters(Parameters); var groupedQueryable = GetTwoKeyGroupedAvailabilityHistory(comparisonType); var availabilityKeyGrouping = BaseVehicleDataAccess.GetAvailabilityGroupingFromParameters(Parameters); var fleetDayKeyGrouping = ExtractFleetHistoryColumns(availabilityKeyGrouping, groupedQueryable); var fleetKeyGrouping = GroupByKey(fleetDayKeyGrouping); var returned = fleetKeyGrouping.ToList(); return(returned); }