コード例 #1
0
        private void DoSubscribe(SiteUser siteUser)
        {
            foreach (LetterInfo available in siteAvailableSubscriptions)
            {
                ListItem item = clNewsletters.Items.FindByValue(available.LetterInfoGuid.ToString());
                if ((item != null) && (item.Selected))
                {
                    DoSubscribe(available, siteUser);
                }
            }

            List <LetterSubscriber> memberSubscriptions = subscriptions.GetListByUser(siteUser.SiteGuid, siteUser.UserGuid);

            NewsletterHelper.RemoveDuplicates(memberSubscriptions);
        }