public NavMenu AddSubMenu(string _id, string _name, string _url, string _target) { NavMenu subMenu = new NavMenu(); subMenu.Id = _id; subMenu.Name = _name; subMenu.NavUrl = _url; subMenu.Target = _target; return(AddSubMenu(subMenu)); }
public NavMenu AddSubMenu(NavMenu subMenu) { subMenu.ParentMenu = this; subMenus.Add(subMenu); return(subMenu); }