Esempio n. 1
0
        /// <summary>
        /// Method that queries a user if it wants to exit
        /// </summary>
        public void Exit()
        {
            //exit application
            Console.WriteLine("Exit? \n Y^(Yes) N^(No)");
            string choice = Console.ReadLine();

            switch (choice)
            {
            case "N":
                AdminMenu begin = new AdminMenu();
                begin.Welcome();
                break;

            case "Y":
                Log.Information("Exit Program");
                System.Environment.Exit(1);
                break;

            default:
                Console.WriteLine("Invalid Input");
                Exit();
                break;
            }
        }