public ActionResult Listings()
        {
            var grid       = new ListingsGrid(_listingService.Query().Include(x => x.ListingType).Select().OrderByDescending(x => x.Created).AsQueryable());
            var categories = CacheHelper.Categories;

            var model = new ListingModel()
            {
                Categories = categories,
                Grid       = grid
            };

            return(View(model));
        }
Esempio n. 2
0
        public ActionResult Listings()
        {
            var grid = new ListingsGrid(_itemService.Queryable().OrderByDescending(x => x.Created));
            var categories = CacheHelper.Categories;

            var model = new ListingModel()
            {
                Categories = categories,
                Grid = grid
            };

            return View(model);
        }
        public ActionResult Listings()
        {
            var grid = new ListingsGrid(_listingService.Query().Include(x => x.ListingType).Select().OrderByDescending(x => x.Created).AsQueryable());
            var categories = CacheHelper.Categories;

            var model = new ListingModel()
            {
                Categories = categories,
                Grid = grid
            };

            return View(model);
        }