Пример #1
0
        public ActionResult SystemUser(FormCollection keys, int?id)
        {
            //查询所有角色
            var RoleList   = _SystemRoleService.GetAll();
            var selectlist = new SelectList(RoleList, "Id", "RoleName");

            ViewData["RoleList"] = selectlist;


            PagedList <UserInfo> list = UserList(keys, true, id, 5);

            if (Request.IsAjaxRequest())
            {
                return(PartialView("_Table_SystemUser", list));
            }

            return(View(list));
        }
Пример #2
0
        /// <summary>
        /// 返回角色列表信息
        /// </summary>
        /// <returns></returns>
        public List <SystemRole> GetAll()
        {
            List <SystemRole> list = srs.GetAll();

            return(list);
        }