public ActionResult <IList <Appointment> > GetAppointments() { var result = _appointmentService.ListAll().Result; return(Ok(result)); }