コード例 #1
0
 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()
 };
コード例 #2
0
 public async Task <Response> Handle(Request request, CancellationToken cancellationToken)
 => new Response()
 {
     DigitalAsset = DigitalAssetDto.FromDigitalAsset(await _context.DigitalAssets.FindAsync(request.DigitalAssetId))
 };