public ActionResult SaveRolesPermission()
        {
            string json      = Request["data"];
            int    roleSysNo = 0;

            int.TryParse(Request["RoleSysNo"], out roleSysNo);

            if (roleSysNo == 1 && !AuthMgr.GetUserRoles().Exists(x => x.SysNo == 1))
            {
                throw new BusinessException("只有超级管理员才可以编辑超级管理员角色的权限");
            }

            List <SysPermission> list = JsonConvert.DeserializeObject <List <SysPermission> >(json);

            role_sevice.SaveRolesPermission(roleSysNo, list);

            return(Json(new AjaxResult {
                Success = true, Message = "保存成功!"
            }, JsonRequestBehavior.AllowGet));
        }