Exemplo n.º 1
0
        private List <MarketingPreference> GetMarketingPreferences(ManagerRoot managerRoot)
        {
            var marketingPreferences = new List <MarketingPreference>();

            if (Tracker.Current == null || Tracker.Current.Contact == null || Tracker.Current.Contact.IsNew)
            {
                return(marketingPreferences);
            }

            var knownContact = _xConnectContactService.GetXConnectContactByEmailAddress();

            if (knownContact != null)
            {
                marketingPreferences = _marketingPreferencesService.GetPreferences(knownContact, managerRoot.Id);
            }

            return(marketingPreferences);
        }
Exemplo n.º 2
0
 public List <MarketingPreference> GetPreferences(Contact contact, Guid managerRootId)
 {
     return(_marketingPreferencesService.GetPreferences(contact, managerRootId));
 }