Exemple #1
0
    public async Task <IEnumerable <RecursoTarefaViewModel> > Handle(GetByTarefaQuery request, CancellationToken cancellationToken)
    {
        IEnumerable <RecursoTarefaViewModel> result = _mapper.Map <IEnumerable <RecursoTarefaViewModel> >(await _unitOfWork.RecursoTarefaRepository.GetByTarefaAsync(request.IdTarefa));

        return(result);
    }
 public async UnaryResult <IEnumerable <ImpedimentoTarefaViewModel> > GetByTarefaAsync(GetByTarefaQuery query)
 {
     return(await _mediator.Send(query));
 }