static void Menu(Order cart) { var order = true; do { Starter.PrintMenu(); int select; int.TryParse(Console.ReadLine(), out select); switch (select) { case 1: cart.CreatePizza("L", "Regular", new List <string> { "Cheese" }); System.Console.WriteLine("Added Cheese Pizza"); break; case 2: cart.CreatePizza("L", "Regular", new List <string> { "Cheese, Pepperoni" }); System.Console.WriteLine("Added Pepperoni Pizza"); break; case 3: cart.CreatePizza("L", "Regular", new List <string> { "Cheese, Pineapple, Ham" }); System.Console.WriteLine("Added Hawaiian Pizza"); break; case 4: cart.CreatePizza("L", "Regular", new List <string> { "Cheese, Pepperoni, Sausage, Meatball, Bacon" }); System.Console.WriteLine("Added Meat Lovers Pizza"); break; case 5: cart.CreatePizza("L", "Regular", new List <string> { "Cheese, Buffalo, Chicken, Ranch" }); System.Console.WriteLine("Added Custom Pizza"); break; case 6: var fmw = new FileManager(); fmw.Write(cart); break; case 7: var fmr = new FileManager(); DisplayCart(fmr.Read()); break; case 8: System.Console.WriteLine("Exit Pizza"); order = false; break; } } while (order); }