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

        return(result);
    }