Пример #1
0
 public async Task <Response> Handle(Request request, CancellationToken cancellationToken)
 => new Response()
 {
     DigitalAssets = _repository.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(_repository.Query <DigitalAsset>(request.DigitalAssetId))
 };