コード例 #1
0
        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);
        }
コード例 #2
0
 public void DatabaseDelete(Booking aBooking)
 {
     bookingDB.DatabaseDelete(aBooking);
 }