public IActionResult RecommendAppointmentSchedule(RecommendedAppointmentDto dto)
 {
     return(Ok(ViewAppointmentAdapter.AppointmentListToViewAppointmenDtoList(regularAppointmentService.GetRecommendedAppointmentAsync(dto))));
 }
 public IActionResult GetAppointmentsForPatientInFuture(int id)
 {
     return(Ok(ViewAppointmentAdapter.AppointmentListToViewAppointmenDtoList(regularAppointmentService.GetAppointmentsForPatientInFuture(id))));
 }
 public IActionResult GetAll()
 {
     return(Ok(ViewAppointmentAdapter.AppointmentListToViewAppointmenDtoList(regularAppointmentService.GetAll())));
 }
 public IActionResult DoesDoctorHaveAnAppointmentAtSpecificTime(int doctorId)
 {
     return(Ok(ViewAppointmentAdapter.AppointmentListToViewAppointmenDtoList(regularAppointmentService.GetAppointmentsForDoctor(doctorId))));
 }
 public async Task <IActionResult> GetAvailableAppointmentsAsync(AvailableAppointmentsSearchDto dto)
 {
     return(Ok(ViewAppointmentAdapter.AppointmentListToViewAppointmenDtoList(await regularAppointmentService.GetAllAvailableAppointmentsForDateAsync(dto.Date, dto.DoctorId, dto.PatientId))));
 }
示例#6
0
 public IActionResult GetWithSurveys(int id)
 {
     return(Ok(ViewAppointmentAdapter.AppointmentListToViewAppointmenDtoList(regularAppointmentService.FindAllValidAppointmentsWithSurvey(regularAppointmentService.GetAppointmentsForPatient(id), SurveyService.GetAllSurveysForPatientId(id)))));
 }