protected void btOk_Click(object sender, EventArgs e)
        {
            DojoSeminarRegistration dojoSeminarRegistration = new DojoSeminarRegistration(dojoSeminarRegistrationID);

            dojoSeminarRegistration.Delete();

            dojoSeminarRegistrationID = 0;

            OnDeleted(EventArgs.Empty);
        }
Example #2
0
        /// <summary>
        /// Deletes the registraton and options from the database. You must
        /// call RemoveFromCart() before deleting the registration.
        /// </summary>
        public void Delete()
        {
            registration.Delete();

            if (registration.Contact != null)
            {
                registration.Contact.Delete();
            }

            foreach (DojoSeminarRegistrationOption option in options)
            {
                option.Delete();
            }
        }