Пример #1
0
        public static StudentExplorerInfo Create(Student student, IList <ClassDetails> classDetailses,
                                                 IList <StudentAverage> mostRecentAvgWithGrades, IList <StandardScore> standardScores
                                                 , IList <AnnouncementComplex> announcements, IList <Standard> standards)
        {
            var res = new StudentExplorerInfo {
                Student = student
            };
            var classesInfo = StudentClassExplorerInfo.Create(classDetailses, mostRecentAvgWithGrades, standardScores, announcements, standards);

            res.ClassesGradingInfo = classesInfo;
            return(res);
        }
Пример #2
0
        public static StudentClassExplorerInfo Create(Class classInfo, decimal?avg, IList <StandardScore> standardScores
                                                      , IList <Standard> standards, AnnouncementComplex importantAnnouncement)
        {
            var res = new StudentClassExplorerInfo
            {
                ClassInfo = classInfo,
                MostImportantAnnouncement = importantAnnouncement,
                Avg       = avg,
                Standards = OrderGradingStandards(GradingStandardInfo.Create(standardScores, standards))
            };

            return(res);
        }