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

        return(result);
    }