private void _checkDayAndLection(DayOfWeek day, int numberOfLection) { Lection lection = _schedule.GetDaySchedule(day)[numberOfLection - 1]; if (lection == null) { Console.WriteLine($"There isn't any lection during {numberOfLection} lection place on {day}"); return; } Console.WriteLine($"{lection.Day} {lection.NumberOfLection} lection is {lection.TypeOfLection}:"); foreach (var human in _listOfHumans) { human.DoingBusiness(lection); } }
public void AddLection(Lection lection) { _schedule.AddLection(lection); }