Esempio n. 1
0
 public IActionResult Get([FromQuery] GetProducts query) =>
 this.Process(query);
 public IEnumerable <ProductListItem> Handle(GetProducts input) =>
 _products
 .Where(x => x.Category.Id == input.CategoryId)
 .ProjectToType <ProductListItem>()
 .ToList();