static void UserMenu(User user) { Console.WriteLine("Please Select one of options: "); Console.WriteLine("1) See order history"); Console.WriteLine("2) Make a new order"); Console.WriteLine("3) Exit Program"); var input = 0; int.TryParse(Console.ReadLine(), out input); if (input == 1) { List <Order> o = _sql.OrderHistoryByUser(user).ToList(); Console.WriteLine(String.Format("{0,-25} {1,-25} {2,-25} {3,-25} {4,-25}\n", "Order ID", "Store Name", "User Name", "price", "date")); foreach (var order in o) { Console.WriteLine(String.Format("{0,-25} {1,-25} {2,-25} {3,-25} {4,-25}\n", order.EntityID, order.Store.Name, order.User.Name, order.price, order.Ordertime)); } } else if (input == 2) { UserView(); } else if (input == 3) { Console.WriteLine("Exiting Program..."); Console.WriteLine("Thank you for using the pizza app!"); } else { Console.WriteLine("Invalid options"); } }