/* * Loads the booking matching given booking number into the system * (from persisted data). * Returns true if the booking was found & loaded successfully, * otherwise false. */ public bool RestoreBooking(int bookingNb) { bool wasRestored = true; List <Dictionary <String, String> > bookingData; if (!dpFacade.Read(bookingNb, out bookingData)) { wasRestored = false; } else { CurrentBook = bFact.Restore(bookingData); CurrentCust = CurrentBook.GetCustomer(); } return(wasRestored); }