Beispiel #1
0
        /// <summary>
        /// add contact to the Party Guest address book
        /// </summary>
        /// <param name="contac"></param>
        internal static void GuestRegistrationCompleted(Contact contact)
        {
            if (DotMailerService.DotMailerEnabled)
            {
                try
                {
                    ApiService apiService = DotMailerService.GetApiService();

                    // add guest to address book - dotMailer will fire off email 18
                    apiService.AddContactToAddressBook(DotMailerService.PartyGuestsAddressBookId, contact.ToApiContact());

                    contact.Partier.DotMailerRegistrationComplete = true;
                }
                catch (Exception exception)
                {
                    LogHelper.Error(typeof(DotMailerService), "GuestRegistrationCompleted", exception);
                }
            }
        }
Beispiel #2
0
        /// <summary>
        /// add contact to the Party Hosts address book
        /// </summary>
        /// <param name="contact"></param>
        internal static void HostRegistrationCompleted(Contact contact)
        {
            if (DotMailerService.DotMailerEnabled)
            {
                try
                {
                    ApiService apiService = DotMailerService.GetApiService();

                    // add host to address book (this also updates the contact details) - dotmailer will fire off email 2.
                    apiService.AddContactToAddressBook(DotMailerService.PartyHostsAddressBookId, contact.ToApiContact());

                    contact.Partier.DotMailerRegistrationComplete = true;
                }
                catch (Exception exception)
                {
                    LogHelper.Error(typeof(DotMailerService), "HostRegistrationCompleted", exception);
                }
            }
        }