private void SetUser(Campaign campaign, MembershipUser mu, bool add, bool verify)
        {
            if (mu == null)
            {
                return;
            }

            UserCampaignDao ucd = new UserCampaignDao(sessionFactoryConfigPath);
            UserCampaign    uc  = ucd.GetByUser((Guid)mu.ProviderUserKey, campaign.ID);

            if (add)
            {
                if (uc == null)
                {
                    uc          = new UserCampaign();
                    uc.Campaign = campaign;
                    uc.UserID   = (Guid)mu.ProviderUserKey;
                    ucd.Save(uc);
                }
            }
            else if (uc != null)
            {
                ucd.Delete(uc);
            }
        }
        private bool IsSubscribed(Campaign campaign, MembershipUser mu)
        {
            if (mu == null)
            {
                return(false);
            }

            UserCampaignDao ucd = new UserCampaignDao(sessionFactoryConfigPath);
            UserCampaign    uc  = ucd.GetByUser((Guid)mu.ProviderUserKey, campaign.ID);

            return(uc != null);
        }