Exemple #1
0
 public virtual decimal GetNutrientIngredientDisplayValue(IngredientNutrient nutrient)
 {
     if (nutrient == null) {
         return 0;
     }
     return nutrient.Value;
 }
 private void addIngredientNutrient(Ingredient ingredient, ICollection<IngredientNutrient> ingredientNutrients, NutrientEntity entity, decimal value)
 {
     var ingredientNutrient = new IngredientNutrient {Ingredient = ingredient, Nutrient = nutrientBusinessLogic.GetNutrient(entity), Value = value};
     ingredientNutrients.Add(ingredientNutrient);
 }