public async Task <IActionResult> GetAll(GetAllIconsQuery query) { return(Ok(await _mediator.Send(query))); }
public async Task <IEnumerable <GetIconDto> > Handle(GetAllIconsQuery request, CancellationToken cancellationToken) { var iconDocuments = await _iconRepository.GetAllAsync(cancellation : cancellationToken); return(_mapper.Map <IEnumerable <GetIconDto> >(iconDocuments)); }