Пример #1
0
 public FoodItem()
 {
     Id         = Guid.NewGuid();
     Name       = "";
     ImageUrl   = "";
     Nutritions = new Nutrition();
 }
Пример #2
0
 public FoodItem(long id, string name, string imageUrl, Nutrition ntn = null)
 {
     TagId         = id;
     this.Name     = name;
     this.ImageUrl = imageUrl;
     if (ntn == null)
     {
         Nutritions = new Nutrition();
     }
     Nutritions = ntn;
     Id         = Guid.NewGuid();
 }