public IActionResult GetWithSurveys() { return(Ok(regularAppointmentService.FindAllValidAppointmentsWithSurvey(regularAppointmentService.GetAppointmentsForPatient(2), SurveyService.GetAllSurveysForPatientId(2)))); }
public IActionResult GetWithSurveys(int id) { return(Ok(ViewAppointmentAdapter.AppointmentListToViewAppointmenDtoList(regularAppointmentService.FindAllValidAppointmentsWithSurvey(regularAppointmentService.GetAppointmentsForPatient(id), SurveyService.GetAllSurveysForPatientId(id))))); }