public static decimal CostOfIngredient(RecipeCostComponent r) { return((decimal)(GetConvertedAmount(r.ConvertFromUnitName, r.ConvertToUnitName, r.IngredientAmount) * (double)r.CostPerUnit)); }
public decimal CalculateCostOfSingleIngredientInARecipe(RecipeCostComponent recipeCostComponent) { return(RecipeCostCalculator.CostOfIngredient(recipeCostComponent)); }