예제 #1
0
 public virtual decimal GetNutrientIngredientDisplayValue(IngredientNutrient nutrient)
 {
     if (nutrient == null) {
         return 0;
     }
     return nutrient.Value;
 }
예제 #2
0
 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);
 }