public ActionResult <Doctor> GetSpecifyDoctor(string identification) { var service = new SearchDoctorService(_unitOfWork); var response = service.Ejecute(new SearchDoctorRequest { Identification = identification }); return(Ok(response)); }
public ActionResult <Doctor> GetAllDoctors() { var service = new SearchDoctorService(_unitOfWork); var response = service.Ejecute(new SearchDoctorRequest { Identification = null }); return(Ok(response)); }