public List <Appointment> GetAppointmentsByDoctor(Doctor doctor)
 {
     return(_repository.GetAppointmentsByDoctor(doctor));
 }