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); } }
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); } } }
protected void UnSubscribeToEmail_Click(Object s, EventArgs e) { cfController.UnSubscribeToPartnerCallsByEmail(UserID, place.ID); SubcsribeEmailMV.SetActiveView(VIEWSubscribeToEmail); }