public static StudentAppsViewData Create(Student student, IList <BaseApplicationViewData> apps , IList <StudentCustomAlertDetail> customAlerts, IList <StudentHealthCondition> healthConditions, IList <StudentHealthFormInfo> healthForms) { return(new StudentAppsViewData { Applications = apps, Person = StudentProfileViewData.Create(student, customAlerts, healthConditions, healthForms) }); }
public static StudentExplorerViewData Create(StudentExplorerInfo studentExplorerInfo, IList <StudentHealthCondition> healthConditions , IList <StudentCustomAlertDetail> customAlerts, IList <ClaimInfo> claims, IList <StudentHealthFormInfo> healthForms) { var res = new StudentExplorerViewData { Student = StudentProfileViewData.Create(studentExplorerInfo.Student, customAlerts, healthConditions, healthForms), ClassesGradingInfo = StudentClassExplorerViewData.Create(studentExplorerInfo.ClassesGradingInfo, claims) }; res.ClassesGradingInfo = res.ClassesGradingInfo .OrderBy(x => x.Avg.HasValue ? x.Avg : int.MaxValue) .ThenBy(x => x.Class.Name).ToList(); return(res); }