public FoodItem() { Id = Guid.NewGuid(); Name = ""; ImageUrl = ""; Nutritions = new Nutrition(); }
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(); }