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