public BookmarkItem GetItemById(int id) { if (Id == id) { return(this); } else { return(ChildItems.FirstOrDefault(x => x.Id == id)); } }
virtual public ItemModel GetChildItem(string Name) { return(ChildItems.FirstOrDefault(ItemCollection => ItemCollection.Name == Name)); }