public async UnaryResult <IEnumerable <ProjetoViewModel> > AllAsync(ListProjetoQuery query)
 {
     return(await _mediator.Send(query));
 }
예제 #2
0
    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);
    }