public async Task <Response> Handle(Request request, CancellationToken cancellationToken) => new Response() { DigitalAssets = _eventStore.Query <DigitalAsset>() .Where(x => request.DigitalAssetIds.Contains(x.DigitalAssetId)) .Select(x => DigitalAssetDto.FromDigitalAsset(x)).ToList() };
public async Task <Response> Handle(Request request, CancellationToken cancellationToken) => new Response() { DigitalAsset = DigitalAssetDto.FromDigitalAsset(_eventStore.Query <DigitalAsset>(request.DigitalAssetId)) };