protected virtual IPersonalContact MapContact(DocumentContact source, IPersonalContact target) { if (source is null) { throw new ArgumentNullException(nameof(source)); } if (target is null) { throw new ArgumentNullException(nameof(target)); } target.FullName = source.FullName; target.Title = source.Title; target.FirstName = source.FirstName; target.LastName = source.LastName; target.Salutation = source.Salutation; target.Attention = source.Attention; target.Email = source.Email; target.WebSite = source.WebSite; target.Phone1 = source.Phone1; target.Phone1Type = source.Phone1Type; target.Phone2 = source.Phone2; target.Phone2Type = source.Phone2Type; target.Phone3 = source.Phone3; target.Phone3Type = source.Phone3Type; target.Fax = source.Fax; target.FaxType = source.FaxType; return(target); }
protected override IPersonalContact MapContact(DocumentContact docContact, IPersonalContact target) { base.MapContact(docContact, target); target.Title = null; return(target); }
protected virtual void MapContact(DocumentContact docContact, BAccount account, ref Contact contact) { base.MapContact(docContact, contact); contact.Title = null; contact.FirstName = null; contact.LastName = null; contact.ContactType = ContactTypesAttribute.BAccountProperty; contact.FullName = account.AcctName; contact.ContactID = account.DefContactID; contact.DefAddressID = account.DefAddressID; contact.BAccountID = account.BAccountID; }
protected virtual IConsentable MapConsentable(DocumentContact source, IConsentable target) { if (source is null) { throw new ArgumentNullException(nameof(source)); } if (target is null) { throw new ArgumentNullException(nameof(target)); } target.ConsentAgreement = source.ConsentAgreement; target.ConsentDate = source.ConsentDate; target.ConsentExpirationDate = source.ConsentExpirationDate; return(target); }