public ControllerResponse <IEnumerable <ScheduleFullDto> > GetAllActualSchedules(DateTime dateNow) { return(ControllerResponse <IEnumerable <ScheduleFullDto> > .Ok(_commonServices .GetAllActualSchedules(dateNow).Select(s => new ScheduleFullDto { DoctorId = s.DoctorId, ActualisationDate = s.ActualisationDate, Monday = new WorkDayDto(_commonServices.GetWorkDayById(s.MondayId)), Tuesday = new WorkDayDto(_commonServices.GetWorkDayById(s.TuesdayId)), Wednesday = new WorkDayDto(_commonServices.GetWorkDayById(s.WednesdayId)), Thursday = new WorkDayDto(_commonServices.GetWorkDayById(s.ThursdayId)), Friday = new WorkDayDto(_commonServices.GetWorkDayById(s.FridayId)) }))); }