public ActionResult <Doctor> GetSpecifyPatient(string identification) { var service = new SearchPatientService(_unitOfWork); var response = service.Ejecute(new SearchPatientRequest { Identification = identification }); return(Ok(response)); }
public ActionResult <Patient> GetAllPatients() { var service = new SearchPatientService(_unitOfWork); var response = service.Ejecute(new SearchPatientRequest { Identification = null }); return(Ok(response)); }