Exemplo n.º 1
0
        // GET: Shop
        //public ActionResult Index()
        //{
        //    return View(DbInteract.GetTopProducts(6));
        //}

        public ActionResult Index(int?page)
        {
            page = page == null ? 1 : page;
            int get = (int)page;

            return(View(DbInteract.GetTopProducts(get * 6)));
        }
Exemplo n.º 2
0
 public ActionResult Index()
 {
     ViewBag.Top5 = DbInteract.GetTopProducts(5);
     return(View(DbInteract.GetAllProducts()));
 }