public async Task <IRoadMap> Handle(GetRoadMapBySolutionIdQuery request, CancellationToken cancellationToken) { await _verifier.ThrowWhenMissingAsync(request.Id, cancellationToken).ConfigureAwait(false); var roadMapResult = (await _roadMapReader.BySolutionIdAsync(request.Id, cancellationToken).ConfigureAwait(false)); return(_mapper.Map <IRoadMap>(roadMapResult)); }
public async Task <IRoadMap> Handle(GetRoadMapBySolutionIdQuery request, CancellationToken cancellationToken) { await verifier.ThrowWhenMissingAsync(request.Id, cancellationToken); var roadMapResult = await roadMapReader.BySolutionIdAsync(request.Id, cancellationToken); return(mapper.Map <IRoadMap>(roadMapResult)); }