private static Decimal determineSausage(DTOOrder order, PizzaPrice pizzaprices)
 {
     if (order.Sausage)
     {
         return(pizzaprices.SausagePrice);
     }
     else
     {
         return(0);
     }
 }
 private static Decimal determinePepperoni(DTOOrder order, PizzaPrice pizzaprices)
 {
     if (order.Pepperoni)
     {
         return(pizzaprices.PepperoniPrice);
     }
     else
     {
         return(0);
     }
 }
 private static Decimal determineOnions(DTOOrder order, PizzaPrice pizzaprices)
 {
     if (order.Onions)
     {
         return(pizzaprices.OnionsPrice);
     }
     else
     {
         return(0);
     }
 }
 private static Decimal determineGreenPeppers(DTOOrder order, PizzaPrice pizzaprices)
 {
     if (order.GreenPeppers)
     {
         return(pizzaprices.GreenPeppersPrice);
     }
     else
     {
         return(0);
     }
 }
 private static Decimal determineSize(DTOOrder order, PizzaPrice pizzaprices)
 {
     if (order.Size == DTO.Enums.SizeType.Small)
     {
         return(pizzaprices.SmallPizzaPrice);
     }
     else if (order.Size == DTO.Enums.SizeType.Medium)
     {
         return(pizzaprices.MediumPizzaPrice);
     }
     else if (order.Size == DTO.Enums.SizeType.Large)
     {
         return(pizzaprices.LargePizzaPrice);
     }
     else
     {
         return(0);
     }
 }
        private static Decimal determineCrust(DTOOrder order, PizzaPrice pizzaprices)
        {
            var price = 0M;

            switch (order.Crust)
            {
            case DTO.Enums.CrustType.Regular:
                price = pizzaprices.RegularPizzaPrice;
                break;

            case DTO.Enums.CrustType.Thin:
                price = pizzaprices.ThinPizzaPrice;
                break;

            case DTO.Enums.CrustType.Thick:
                price = pizzaprices.ThickPizzaPrice;
                break;
            }
            return(price);
        }