public IEnumerable <Subject> GetSubjectsBySchoolYear(SchoolYearEnum schoolYear)
 {
     return(service.GetSubjectsBySchoolYear(schoolYear));
 }
        public IEnumerable <Subject> GetSubjectsBySchoolYear(SchoolYearEnum schoolYear)
        {
            IEnumerable <Subject> subjects = db.SubjectRepository.Get(x => x.SchoolYear == schoolYear);

            return(subjects);
        }
Exemple #3
0
        public IEnumerable <SchoolClass> GetSchoolClassesByCalendarYearAndSchoolYear(int calendarYear, SchoolYearEnum schoolYear)
        {
            IEnumerable <SchoolClass> schoolClasses = db.SchoolClassRepository.Get(x => x.CalendarYear == calendarYear && x.SchoolYear == schoolYear);

            return(schoolClasses);
        }