// GET: Admin/user
        public ActionResult Index(string search, int page = 1, int pageSize = 10)
        {
            var dao   = new userDao();
            var model = dao.listAllPaging(page, pageSize);

            return(View(model));
        }
Esempio n. 2
0
        // GET: Admin/user
        public ActionResult Index(string Search, int page = 1, int pageSize = 2)// thử chia làm 3 trang mà n k thấy gì
        {
            var dao   = new userDao();
            var model = dao.listAllPaging(Search, page, pageSize);

            ViewBag.Search = Search;
            return(View(model));
        }
        // GET: Admin/User
        public ActionResult Index(string Search, int page = 1, int pageSize = 5)
        {
            var dao   = new userDao();
            var model = dao.listAllPaging(Search, page, pageSize);

            ViewBag.Search = Search;
            return(View(model));
        }