public IActionResult GetAvailableAppointments(AvailableAppointmentsSearchDto dto)
 {
     return(Ok(this.regularAppointmentService.GetAllAvailableAppointmentsForDate(dto.Date, dto.DoctorId, dto.PatientId)));
 }
 public async Task <IActionResult> GetAvailableAppointmentsAsync(AvailableAppointmentsSearchDto dto)
 {
     return(Ok(ViewAppointmentAdapter.AppointmentListToViewAppointmenDtoList(await regularAppointmentService.GetAllAvailableAppointmentsForDateAsync(dto.Date, dto.DoctorId, dto.PatientId))));
 }