Example #1
0
 public List <TeacherGroup> GetTeacherGroups(TeacherSubject subject)
 {
     return(context.TeacherGroups.Where(i => i.TeacherId == Teacher.IdTeacher && i.TeacherSubject.IdTeacherSubject == subject.IdTeacherSubject).ToList());
 }
Example #2
0
 public List <Task> GetStudentTasks(TeacherSubject teacherSubject)
 {
     return(context.Tasks.Where(b => b.TeacherGroup.TeacherSubject.IdTeacherSubject == teacherSubject.IdTeacherSubject).ToList());
 }