IContactRelationAssignerAssign Method (Int32, MemberTypeEnum, Int32, Boolean) |
Namespace: CMS.ContactManagement
void Assign( int relatedId, MemberTypeEnum memberType, int contactId, bool mergeUsers )
... IContactRelationAssigner contactRelationAssigner = someImplementation; var subscriber = subscriber; var contactI = someContactId; // Will create new ContactMembershipInfo record of type Subscriber linking to the given contact and subscriber contactRelationAssigner.Assign(subscriber.SubscriberID, MemberTypeEnum.NewsletterSubscriber, someContactId, false); ...