コード例 #1
0
        public ActionResult Index(int PageNum = 1, int PageSize = 16)
        {
            SanPhamDao dao = new SanPhamDao();

            GioHangHoa gio = (GioHangHoa)Session["cart"];

            if (gio != null)
            {
                ViewBag.gia = gio.getTongTien();
            }
            return(View("List", dao.ListSPPage(PageNum, PageSize)));
        }
コード例 #2
0
        public ActionResult sp(int PageNum = 1, int PageSize = 10)
        {
            SanPhamDao dao = new SanPhamDao();

            return(View(dao.ListSPPage(PageNum, PageSize)));
        }