Ejemplo n.º 1
0
        public ActionResult List(int pageIndex = 1)
        {
            string keyWords = Request["keyWords"] == null ? "" : Request["keyWords"].ToString();
            var    admins   = AdminUserService.GetAllAdmin(8, (pageIndex - 1) * 8, keyWords);
            var    totals   = AdminUserService.GetTotalCount(keyWords);

            ViewBag.pageIndex = pageIndex;
            ViewBag.total     = totals;
            ViewBag.pageSize  = 8;
            ViewBag.keywords  = keyWords;
            return(View(admins));
        }