private async Task AddAssessmentArea(string areaType, string areaName, decimal?schoolData, decimal?totalForAreaType, SchoolTrustFinancialDataObject schoolFinancialData, SelfAssesmentModel model, string termYears) { List <SADSchoolRatingsDataObject> ratings = await _selfAssesmentDashboardDataService.GetSADSchoolRatingsDataObjectAsync(areaName, schoolFinancialData?.OverallPhase, bool.Parse(schoolFinancialData?.Has6Form ?? "false"), schoolFinancialData?.LondonWeight, model.SadSizeLookup?.SizeType, model.SadFSMLookup?.FSMScale, termYears); ratings = ratings.OrderBy(t => t.ScoreLow).ToList(); model.SadAssesmentAreas.Add(new SadAssesmentAreaModel(areaType, areaName, schoolData, totalForAreaType, ratings)); }
public async Task <ActionResult <List <SADSchoolRatingsDataObject> > > GetAsync(string areaName, string overallPhase, bool has6Form, string londonWeight, string sizeType, string fsmScale, string termYears) { var ratings = await _selfAssesmentDashboardDataService.GetSADSchoolRatingsDataObjectAsync(areaName, overallPhase, has6Form, londonWeight, sizeType, fsmScale, termYears); ratings = ratings.OrderBy(t => t.ScoreLow).ToList(); return(ratings); }