Exemple #1
0
        public ActionResult <Doctor> GetSpecifyDoctor(string identification)
        {
            var service  = new SearchDoctorService(_unitOfWork);
            var response = service.Ejecute(new SearchDoctorRequest {
                Identification = identification
            });

            return(Ok(response));
        }
Exemple #2
0
        public ActionResult <Doctor> GetAllDoctors()
        {
            var service  = new SearchDoctorService(_unitOfWork);
            var response = service.Ejecute(new SearchDoctorRequest {
                Identification = null
            });

            return(Ok(response));
        }