Пример #1
0
        /// <summary>
        /// 获取模块树数据
        /// </summary>
        /// <param name="id">角色ID</param>
        /// <returns>json格式的JStree</returns>
        public ActionResult ModuleTreeList(int id = 0)
        {
            RoleBll bll     = new RoleBll();
            var     modules = bll.GetRoleModule(id);
            var     jsTree  = JsTreeAllModulewhithHead(modules);

            return(Json(jsTree, JsonRequestBehavior.AllowGet));
        }