Exemple #1
0
 public bool ValidateUnderPriceLimit()
 {
     // add this after the user has choosen their pizza
     if (CalculatePrice() > 250.00m)
     {
         Console.WriteLine("Your order can not be more than $250");
         Pizzas.Remove(Pizzas.Last());
         return(false);
     }
     return(true);
 }