예제 #1
0
        public ActionResult Index()
        {
            var model = new GamesViewModels()
            {
                Products = db.ProductsModels.OrderByDescending(s => s.AddDate).ToList().Take(6)
            };

            return(View(model));
        }
예제 #2
0
        // GET: Games
        public ActionResult Index()
        {
            var model = new GamesViewModels()
            {
                Products = db.ProductsModels.ToList()
            };

            return(View(model));
        }