Example #1
0
 public ItemModel(int id, string name, string description, SubItemModel subItem)
 {
     Id          = id;
     Title       = name;
     Description = description;
     SubItem     = subItem;
 }
Example #2
0
 public ItemModel(ItemModel item)
 {
     Id          = item.Id;
     Title       = item.Title;
     Description = item.Description;
     if (item.SubItem != null)
     {
         SubItem = new SubItemModel(item.SubItem);
     }
 }
 public SubItemModel(SubItemModel subItem)
 {
     Title = subItem.Title;
     Link  = subItem.Link;
 }