private ICollection<Ingredient> ingredients;
public virtual ICollection<Ingredient> Ingredients
{
get => ingredients ?? (ingredients= new List<Ingredient>());
set
{
if (value == null)
throw new ArgumentNullException("Ingredients");
else if (value.Count() <= 0)
throw new ArgumentOutOfRangeException("Ingredients");
ingredients = value;
}
}