public bool Delete(Booking booking) { bool success = false; int position = 0; //find the entry in the collection and remove position = FindIndex(booking); if (position >= 0) { bookings.RemoveAt(position); } //remove the entry from the database success = bookingDB.DatabaseDelete(booking); return(success); }
public void DatabaseDelete(Booking aBooking) { bookingDB.DatabaseDelete(aBooking); }