コード例 #1
0
 public IActionResult Get([FromQuery] GetProducts query) =>
 this.Process(query);
コード例 #2
0
 public IEnumerable <ProductListItem> Handle(GetProducts input) =>
 _products
 .Where(x => x.Category.Id == input.CategoryId)
 .ProjectToType <ProductListItem>()
 .ToList();