public void SetAppointments(List <Appointment> appointments)
 {
     _repository.SetAppointments(appointments);
 }