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));
        }
Exemple #2
0
 private IQueryable <Game> FilterByPrice(IQueryable <Game> gamesQuery, FilterPrice price) => price switch
 {