public RecipeIngredient(UnitOfMeasurements.IMeasurementValue value, Ingredient ingredient) { Ingredient = new Models.Ingredient(ingredient); IngredientMeasure = new Models.IngredientMeasure() { Ingredient = this.Ingredient, Measure = value }; this.Preparation = ingredient.SelectedPreparation; }
public RecipeIngredient(UnitOfMeasurements.IMeasurementValue value, string ingredient, string preparation) { Ingredient = new Models.Ingredient(ingredient); IngredientMeasure = new Models.IngredientMeasure() { Ingredient = this.Ingredient, Measure = value }; this.Preparation = new Preparation(preparation); }
public Measures(UnitOfMeasurements.Quantity quantity) { Qty = quantity.BaseValue; }
public Measures(UnitOfMeasurements.Weight weight) { Qty = weight.BaseValue; }