Exemplo n.º 1
0
        public ActionResult <Doctor> GetSpecifyPatient(string identification)
        {
            var service  = new SearchPatientService(_unitOfWork);
            var response = service.Ejecute(new SearchPatientRequest {
                Identification = identification
            });

            return(Ok(response));
        }
Exemplo n.º 2
0
        public ActionResult <Patient> GetAllPatients()
        {
            var service  = new SearchPatientService(_unitOfWork);
            var response = service.Ejecute(new SearchPatientRequest {
                Identification = null
            });

            return(Ok(response));
        }