Exemplo n.º 1
0
        public ActionResult <MedicalAppointment> GetByDoctor(string identification)
        {
            var service  = new SearchMedicalAppointmentService(_unitOfWork);
            var response = service.Ejecute(new SearchMedicalAppointmentRequest {
                DoctorIdentification = identification
            });

            return(Ok(response));
        }
Exemplo n.º 2
0
        public ActionResult <string> Get()
        {
            var service  = new SearchMedicalAppointmentService(_unitOfWork);
            var response = service.Ejecute(new SearchMedicalAppointmentRequest
            {
                DoctorIdentification = null, PatientIdentification = null
            });

            return(Ok(response));
        }