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)); }
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); }