List<WeightedGroupItem> SupplementForPiza(WeightedValue value) { return new List<WeightedGroupItem> { new WeightedGroupItem { Name = value.Name, Type = value.Type, Weight = 1, } }; }
List<WeightedGroupItem> IngredientsSupplementsProvider(WeightedValue group) { var ingredients = Definitions.All.Ingredients.GetByGroup (group.Name); return ingredients.Count > 0 ? ingredients [0].SupplementGroups : new List<WeightedGroupItem> (); }