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