public List <Doctor> GetDoctorsWhoWork(DateTime date, Model.Manager.WorkShifts workShift)
        {
            List <WorkingTime> workingTimes = ReadFromFile();
            List <Doctor>      results      = new List <Doctor>();

            foreach (WorkingTime w in workingTimes)
            {
                if (w.WorkShift.Equals(workShift))
                {
                    DateTime d1   = w.StartDate;
                    DateTime d2   = w.EndDate;
                    int      res1 = DateTime.Compare(d1, date);
                    int      res2 = DateTime.Compare(d2, date);
                    if (res1 <= 0 && res2 >= 0)
                    {
                        results.Add(w.doctor);
                    }
                }
            }
            return(results);
        }
 public List <Doctor> ViewDoctorsWhoWork(DateTime date, Model.Manager.WorkShifts workShift)
 {
     return(workingTimeRepository.GetDoctorsWhoWork(date, workShift));
 }
 public List <Doctor> ViewDoctorsWhoWork(DateTime date, Model.Manager.WorkShifts workShift)
 {
     return(workingTimeService.ViewDoctorsWhoWork(date, workShift));
 }