public bool RemoveTopping(Topping topping)
 {
     if (DoesToppingExist(topping, false))
     {
         return(ToppingList.Remove(topping));
     }
     System.Console.WriteLine("topping " + topping + "was not added yet");
     return(false);
 }
Exemplo n.º 2
0
 //returns true if 'topping' is successfully removed from 'toppingList'
 public bool RemoveTopping(Topping topping)
 {
     return(ToppingList.Remove(topping));
 }