コード例 #1
0
 /// <summary>
 /// Calculates the total for a given list of pizzas. Returns the total with
 /// tax added.
 /// </summary>
 public decimal GetCostOfPizzas(List <PizzaBO> pizzaBOList)
 {
     return(PriceCalculator.CalculateCostOfPizzas(pizzaBOList));
 }
コード例 #2
0
 /// <summary>
 /// Gets the cost of a pizza without tax.
 /// </summary>
 /// <param name="pizzaBO">The pizza to calculate on.</param>
 /// <returns>Return the cost of the pizza.</returns>
 public decimal GetPizzaCost(PizzaBO pizzaBO)
 {
     return(PriceCalculator.CalculateBasePizzaCost(pizzaBO));
 }