Esempio n. 1
0
        public ActionResult AdminList()
        {
            int    pageIndex = GetQueryInt("page");
            string keyword   = GetQueryString("keyword");
            var    paging    = new Paging
            {
                PageIndex = pageIndex
            };
            var result = _sysAdminService.GetMany(m => (string.IsNullOrEmpty(keyword) || m.Name.Contains(keyword) || m.UserName.Contains(keyword)),
                                                  paging);

            return(View(result));
        }