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