public async UnaryResult <IEnumerable <RecursoProjetoViewModel> > GetByProjetoAsync(GetByProjetoQuery query)
 {
     return(await _mediator.Send(query));
 }
    public async Task <IEnumerable <RecursoProjetoViewModel> > Handle(GetByProjetoQuery request, CancellationToken cancellationToken)
    {
        IEnumerable <RecursoProjetoViewModel> result = _mapper.Map <IEnumerable <RecursoProjetoViewModel> >(await _unitOfWork.RecursoProjetoRepository.GetByProjetoAsync(request.IdProjeto));

        return(result);
    }