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