Пример #1
0
 public Task <Response> Handle(Request request, CancellationToken cancellationToken)
 => Task.FromResult(new Response()
 {
     Product = ProductDto.FromProduct(_repository.Query <Product>().Single(x => x.ProductId == request.ProductId))
 });