//添加一个菜单 //parentID == -1 ,添加到根节点 public bool AddMenuItem(int parentID, Menu add) { if (parentID == -1) { Menu root = GetRootItem(); return(db_menus.AddMenu(root.Menu_Id, add)); } else { return(db_menus.AddMenu(parentID, add)); } }