public async UnaryResult <IEnumerable <ProjetoViewModel> > AllAsync(ListProjetoQuery query) { return(await _mediator.Send(query)); }
public async Task <IEnumerable <ProjetoViewModel> > Handle(ListProjetoQuery request, CancellationToken cancellationToken) { IEnumerable <ProjetoViewModel> result = _mapper.Map <IEnumerable <ProjetoViewModel> >(await _unitOfWork.ProjetoRepository.AllAsync(request.GetDependencies)); return(result); }