Exemplo n.º 1
0
 public async Task <IActionResult> GetAll([FromRoute] AppointmentTypeQuery query)
 {
     return(Ok(await _dispatcher.QueryAsync <List <AppointmentTypeDTO> >(query)));
 }
Exemplo n.º 2
0
 public async Task <IActionResult> GetBySpecialistId([FromRoute] AppointmentTypeQuery query)
 {
     return(Ok(await _dispatcher.QueryAsync <SpecialistAppointmentTypesDTO>(query)));
 }
Exemplo n.º 3
0
        public async Task <List <AppointmentTypeDTO> > HandleAsync(AppointmentTypeQuery query)
        {
            IEnumerable <AppointmentType> appTypes = await _appointmentTypeRepo.GetAllAsync();

            return(_mapper.Map <List <AppointmentTypeDTO> >(appTypes));
        }