public bool AddLectureToSchedule(Stream stream, Auditorium auditorium, Teacher teacher, Subject subject, TimeSlot time) { var lecture = new Lecture(teacher, time, subject, auditorium, stream); return(AddLectureToSchedule(lecture)); }
public bool Contains(Auditorium auditorium, TimeSlot timeSlot) { return(Lectures.Where(x => x.Auditorium == auditorium && x.TimeSlot == timeSlot).Any() || Practices.Where(x => x.Auditorium == auditorium && x.TimeSlot == timeSlot).Any()); }
public bool AddPracticeToSchedule(Group group, Auditorium auditorium, Teacher teacher, Subject subject, TimeSlot time) { var practice = new Practice(teacher, time, subject, auditorium, group); return(AddPracticeToSchedule(practice)); }