public void Execute() { Display.ShowAddOrder(); OrderRequest request = new OrderRequest(); OrderRequest filledRequest = CreateRequest(request); string answer = UserInteractions.PromptUserForConfirmation("Do you wish to save this order? Y or N: "); if (answer == "Y") { SubmitRequest(filledRequest); } else { var menu = new MainMenu(); menu.Execute(); } }
static void Main(string[] args) { var mainMenu = new MainMenu(); mainMenu.Execute(); }