Ejemplo n.º 1
0
        public List <Employee> readAllEmployees()
        {
            List <Doctor>    doctors   = (List <Doctor>)doctorRepository.FindAll();
            List <Secretary> secretary = (List <Secretary>)secretaryRepository.FindAll();

            List <Employee> employees = new List <Employee>();

            employees.AddRange(doctors.Cast <Employee>().ToList());
            employees.AddRange(secretary.Cast <Employee>().ToList());

            return(employees);
        }
 public List <Doctor> GetAllDoctors()
 {
     return((List <Doctor>)doctorRepository.FindAll());
 }