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