/// <summary> /// 注册需要忽略的功能(这些功能任何登陆用户都可使用) /// </summary> /// <typeparam name="T"></typeparam> /// <param name="actionExpression"></param> public Functions IgnoreFunction <T>(Expression <Func <T, object> > actionExpression) where T : Controller { FunctionComponent component = new FunctionComposite <T>(string.Empty, actionExpression); AddIgnoreFunction(component); return(this); }
public void RegisterGroup <T>(string groupName, Expression <Func <T, object> > actionExpression, string iconClass, bool hasMenu, params FunctionComponent[] childFunctions) where T : Controller { FunctionComponent component = new FunctionComposite <T>(groupName, actionExpression, childFunctions); component.IconClass = iconClass; component.IsShowOnNav = hasMenu; FunctionGroup.Add(component); RegisterFunctionDict(component); }