示例#1
0
        private void DisplayReservationDetails(int reservationId)
        {
            Console.Clear();

            ParkSqlDAL         reservationDal       = new ParkSqlDAL(_dbConnectionString);
            List <Reservation> confirmedReservation = reservationDal.GetConfirmedReservationInfo(reservationId);

            Console.WriteLine();

            bool exit = false;

            while (!exit)
            {
                string command = menus.ConfirmedReservationDetails(confirmedReservation);

                if (command == "M" || command == "m")
                {
                    DisplayMenu();
                }
                else if (command == "Q" || command == "q")
                {
                    menus.QuitMenu();
                }
                else
                {
                    menus.InvalidEntry();
                    exit = true;
                }

                Console.ReadKey();
                Console.Clear();
            }
        }