Exemplo n.º 1
0
 public IEnumerable <BestsellersListItem> Handle(GetBestsellers input) =>
 _products
 .Where(Product.Specs.IsBestseller)
 .ProjectToType <BestsellersListItem>()
 .ToList();
 public ActionResult <IEnumerable <BestsellersListItem> > Get([FromQuery] GetBestsellers query) =>
 this.Process(query);