Esempio n. 1
0
        private IList <Token> GenerateTokens(NewsLetterSubscription subscription, string MessageTemplateName)
        {
            if (MessageTemplateName == "Campaign.Register.ActivationMessage")
            {
                var tokens = new List <Token>();

                _messageTokenProvider.AddStoreTokens(tokens);
                _messageTokenProvider.AddCampaignNewsLetterSubscriptionTokens(tokens, subscription);

                return(tokens);
            }
            else
            {
                var tokens = new List <Token>();

                _messageTokenProvider.AddStoreTokens(tokens);
                _messageTokenProvider.AddCampaignConvokeNewsLetterSubscriptionTokens(tokens, subscription);

                return(tokens);
            }
        }