Exemple #1
0
        private void GetReservationsIn30Days()
        {
            ReservationSqlDAL resDAL = new ReservationSqlDAL(DatabaseConnection);

            Console.WriteLine("Site Number".PadRight(14) + "Name".PadRight(30) + "Date\n");

            List <Reservation> list = resDAL.GetReservationsFor30Days();

            if (list.Count > 0)
            {
                list.ForEach(c =>
                {
                    Console.WriteLine(c);
                });
            }
            else
            {
                Console.WriteLine("\nNo reservations found.");
            }

            Console.WriteLine("\n");
        }