public void OnGet() { Run = queries.GetLastRun(); Costs = queries.GetCostReports(Run.RunID); CostsByGroup = Costs.GroupBy(c => c.GroupName.ToLower()).OrderByDescending(g => g.Sum(r => r.MonthlyCost)); }
public void OnGet() { Run = queries.GetLastRun(); Costs = queries.GetCostReports(Run.RunID); CostsByGroup = Costs.GroupBy(c => c.GroupName.ToLower()).OrderByDescending(g => g.Sum(r => r.MonthlyCost)); }