/// <summary> /// 根据菜单ID获取菜单信息 /// </summary> /// <param name="UserId"></param> /// <returns></returns> public static Menu GetUser(string nodeid) { return(MenuProvider.Instance().GetFunctionNode(nodeid)); }
/// <summary> /// 删除菜单 /// </summary> /// <param name="userId"></param> /// <returns></returns> public static bool DeleteUser(string nodeid) { return(MenuProvider.Instance().DeleteFunctionNode(nodeid)); }
/// <summary> /// 添加菜单 /// </summary> /// <param name="User"></param> /// <returns></returns> public static bool AddUser(Menu node) { return(MenuProvider.Instance().AddFunctionNode(node)); }
/// <summary> /// 更新菜单 /// </summary> /// <param name="User"></param> /// <returns></returns> public static bool UpdateUser(Menu node) { return(MenuProvider.Instance().UpdateFunctionNode(node)); }
static MenuProvider() { _defaultInstance = DataProviders.CreateInstance("FPLDQ.DataController.MenuData, FPLDQ.DataController") as MenuProvider; }