public async Task <IActionResult> GetAll([FromRoute] AppointmentTypeQuery query) { return(Ok(await _dispatcher.QueryAsync <List <AppointmentTypeDTO> >(query))); }
public async Task <IActionResult> GetBySpecialistId([FromRoute] AppointmentTypeQuery query) { return(Ok(await _dispatcher.QueryAsync <SpecialistAppointmentTypesDTO>(query))); }
public async Task <List <AppointmentTypeDTO> > HandleAsync(AppointmentTypeQuery query) { IEnumerable <AppointmentType> appTypes = await _appointmentTypeRepo.GetAllAsync(); return(_mapper.Map <List <AppointmentTypeDTO> >(appTypes)); }