public ActionResult Index() { var model = new GamesViewModels() { Products = db.ProductsModels.OrderByDescending(s => s.AddDate).ToList().Take(6) }; return(View(model)); }
// GET: Games public ActionResult Index() { var model = new GamesViewModels() { Products = db.ProductsModels.ToList() }; return(View(model)); }