public void GetAllReservations() { List <Reservation> myReservationsTest = new List <Reservation>(); ReservationSQLDAL mySQLTest = new ReservationSQLDAL(connectionString); myReservationsTest = mySQLTest.GetAllReservations(); }
private void GetReservations() { ReservationSQLDAL dal = new ReservationSQLDAL(connectionString); List <Reservation> reservations = dal.GetAllReservations(); Console.WriteLine(); foreach (var reservation in reservations) { Console.WriteLine(); Console.WriteLine(reservation); } }