예제 #1
0
 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();
     }
 }
예제 #2
0
 static void Main(string[] args)
 {
     var mainMenu = new MainMenu();
     mainMenu.Execute(); 
 }