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); }
public List <MarketingPreference> GetPreferences(Contact contact, Guid managerRootId) { return(_marketingPreferencesService.GetPreferences(contact, managerRootId)); }