private void viewReservations() { bool noAdvance = false; do { Console.Clear(); getAllAvailableParks(); Console.WriteLine("Which Park's Reservations would you like to view? (numeric value))"); string userResponse = Console.ReadLine(); try { int value = Int32.Parse(userResponse); IList <Reservation> reservations = reservationDAO.GetReservations30Days(value); if (reservations.Count > 0) { Console.WriteLine("ID SiteID Name Start Date End Date Created"); foreach (Reservation reservation in reservations) { Console.WriteLine($"{reservation.Id} | {reservation.SiteId} | {reservation.ReservationName} | {reservation.StartDate} | {reservation.EndDate} | {reservation.EndDate}"); } } else { Console.WriteLine("**** NO RESULTS ****"); } } catch (Exception e) { Console.WriteLine("Error... value entered for the park's ID is invalid. Please Try Again...\n\n*Press any key to continue"); Console.ReadLine(); noAdvance = true; } }while (noAdvance); }