예제 #1
0
        public ActionResult ShowUserInfo()
        {
            if (Session["UserLogin"] == null)
            {
                return(RedirectToAction("Login"));
            }

            //将查询到的数据记录分页显示代码
            int totalCount;
            int pageIndex = Convert.ToInt32(Request.QueryString["pageIndex"]);

            var userInfoList = iUserDal.LoadPageEntity <string>(pageIndex, 10, out totalCount, s => true, ss => ss.UserID, true);

            ViewBag.PageList = PageBarHelper.GetPagaBar(pageIndex, totalCount);
            return(View(userInfoList));
        }