コード例 #1
0
        protected void SubscribeToEmail_Click(Object s, EventArgs e)
        {
            ClimberProfile cp = cfController.GetClimberProfile(UserID);

            if (!cp.EmailVerified)
            {
                RedirectTo <ClimberProfilesController>(c => c.VerifyEmailAddress(Guid.Empty));
            }
            else
            {
                cfController.SubscribeToPartnerCallsByEmail(UserID, place.ID);
                SubcsribeEmailMV.SetActiveView(VIEWSubscribedToEmail);
            }
        }
コード例 #2
0
        protected void Page_Init(Object s, EventArgs e)
        {
            if (UserLoggedIn)
            {
                subscriptions = cfController.GetPartnerCallSubscription(UserID, place.ID);

                if (subscriptions.RSS)
                {
                    SubcsribeRSSMV.SetActiveView(VIEWSubscribedToRSS);
                }
                if (subscriptions.Email)
                {
                    SubcsribeEmailMV.SetActiveView(VIEWSubscribedToEmail);
                }
            }
        }
コード例 #3
0
 protected void UnSubscribeToEmail_Click(Object s, EventArgs e)
 {
     cfController.UnSubscribeToPartnerCallsByEmail(UserID, place.ID);
     SubcsribeEmailMV.SetActiveView(VIEWSubscribeToEmail);
 }