public void OptionsToAdmin() { int choice = ShowAdminMenu(); switch (choice) { case 1: restro.ShowAvailableTables(true); break; case 2: restro.ShowAvailableItems(true); break; case 3: restro.ShowCustomerVisited(); break; case 4: Environment.Exit(0); break; default: Console.WriteLine("Wrong Option"); break; } }
private void SelectItems() { string choice = ""; do { Restro.ShowAvailableItems(true); Console.WriteLine("Select Items :"); int selectItem = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("Enter Quantity :"); int itemQuantity2 = Convert.ToInt32(Console.ReadLine()); Restro.OrderItem(CustomerId, selectItem, itemQuantity2); Console.WriteLine("Do you want to order something (Y/N) ? : "); choice = Console.ReadLine(); } while (choice.Equals("y", StringComparison.OrdinalIgnoreCase)); }