public ActionResult <MedicalAppointment> GetByDoctor(string identification) { var service = new SearchMedicalAppointmentService(_unitOfWork); var response = service.Ejecute(new SearchMedicalAppointmentRequest { DoctorIdentification = identification }); return(Ok(response)); }
public ActionResult <string> Get() { var service = new SearchMedicalAppointmentService(_unitOfWork); var response = service.Ejecute(new SearchMedicalAppointmentRequest { DoctorIdentification = null, PatientIdentification = null }); return(Ok(response)); }