Esempio n. 1
0
        public ActionResult GetInforFilterPrice(int FilterID)
        {
            FilterPrice Infor = db.FilterPrices.Where(x => x.FilterID == FilterID).FirstOrDefault();
            var         rslt  = new
            {
                priceFrom = Infor.PriceFrom,
                priceTo   = Infor.PriceTo
            };

            return(Json(rslt, JsonRequestBehavior.AllowGet));
        }
Esempio n. 2
0
 private IQueryable <Game> FilterByPrice(IQueryable <Game> gamesQuery, FilterPrice price) => price switch
 {