public async Task <IIntegrations> Handle(GetIntegrationsBySolutionIdQuery request, CancellationToken cancellationToken) { await _verifier.ThrowWhenMissingAsync(request.Id, cancellationToken).ConfigureAwait(false); var integrationsResult = (await _integrationsReader.BySolutionIdAsync(request.Id, cancellationToken).ConfigureAwait(false)); return(_mapper.Map <IIntegrations>(integrationsResult)); }
public async Task <IIntegrations> Handle(GetIntegrationsBySolutionIdQuery request, CancellationToken cancellationToken) { await verifier.ThrowWhenMissingAsync(request.Id, cancellationToken); var integrationsResult = await integrationsReader.BySolutionIdAsync(request.Id, cancellationToken); return(mapper.Map <IIntegrations>(integrationsResult)); }