Esempio n. 1
0
        private void findAndRemoveDoctorFromSchedule(DoctorUser doctor, DoctorUser doctorUser)
        {
            List <Schedule> listOfSchedule = new List <Schedule>();

            listOfSchedule = _employeesScheduleRepository.GetAll();

            foreach (Schedule schedule in listOfSchedule)
            {
                if (schedule.EmployeeId.Equals(doctorUser.id.ToString()))
                {
                    removeDoctorFromRepositories(schedule.id, doctor);
                }
            }
        }
 public List <Schedule> GetAll()
 {
     return(_employeesScheduleRepository.GetAll());
 }