Esempio n. 1
0
        public void RejectPass()
        {
            Console.WriteLine();
            Console.WriteLine("Are you sure you want to reject this Season Parking Pass? This will result in its termination. (y/n)");
            string confirm_approve = Console.ReadLine().ToLower();

            switch (confirm_approve)
            {
            case "y":
                vsp.SetCurrentState(vsp.GetRejectedState());     //set season pass state
                Console.WriteLine();
                Console.WriteLine("Season pass with ID of {0} Rejected.", vsp.SeasonPassID);
                break;

            case "n":
                Console.WriteLine();
                Console.WriteLine("Action cancelled. Season Parking Pass remains pending.");
                break;

            default:
                Console.WriteLine();
                Console.WriteLine("Invalid input. Returning to the main menu.");
                break;
            }
        }