public void ConfirmDeletion() { Console.ForegroundColor = ConsoleColor.Red; Console.Beep(); Console.Beep(); Console.Beep(); Console.WriteLine("\tARE YOU SURE YOU WANT TO DELETE THIS ORDER? (Y)es or (N)o"); string input = Console.ReadLine().ToUpper(); if (input == "Y") { OrderOperations ops = new OrderOperations(); Response response = ops.OrderToDelete(formattedDate, orderNumber); if (response.Success) { Console.WriteLine(response.Message); } else { Console.WriteLine(response.Message); } } else { MainMenu mainMenu = new MainMenu(); mainMenu.Execute(); } }
private static void Main(string[] args) { var menu = new MainMenu(); menu.Execute(); //OrderOperations orderOperations = new OrderOperations(); // orderOperations.ReadAllSettings(); //var op = orderOperations.AccessData(); Console.ReadLine(); }