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

        return(result);
    }