Exemplo n.º 1
0
        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());
 }
Exemplo n.º 3
0
        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));
        }