コード例 #1
0
        // GET: SanPhams
        public ActionResult Index(string search, int page = 1, int pageSize = 11)
        {
            var dao   = new SanPhamDao();
            var model = dao.ListAllPaging(search, page, pageSize);

            return(View(model));
        }
コード例 #2
0
        // GET: Admin/SanPham
        public ActionResult Index(string searchString, int page = 1, int pageSize = 10)
        {
            var sanphamdao = new SanPhamDao();
            var model      = sanphamdao.ListAllPaging(searchString, page, pageSize);

            ViewBag.SearchString = searchString;
            return(View(model));
        }