public static AllSchoolsActiveClassesViewData Create(IList <ClassDetails> classes, IList <CourseType> courseTypes, IList <School> schools)
        {
            var res = new AllSchoolsActiveClassesViewData();

            res.Classes     = ClassViewData.Create(classes);
            res.CourseTypes = ShortCourseTypeViewData.Create(courseTypes);
            res.Schools     = LocalSchoolViewData.Create(schools);
            return(res);
        }
Exemplo n.º 2
0
        public static ClassScheduleViewData Create(ClassDetails classDetails, IList <AnnouncementCalendarWeekViewData> schedule)
        {
            var res = new ClassScheduleViewData
            {
                Class    = ClassViewData.Create(classDetails),
                Schedule = schedule
            };

            return(res);
        }