protected void lbtnFollow_Click(object sender, EventArgs e) { this.ProfileRedirect(Constants.UserPermission.CommunityUser); switch (Type) { case Constants.TelligentContentType.BlogPost: //Call Bookmarking functions if (TelligentService.CreateFavorite(CurrentMember.ScreenName, ContentId, ContentTypeId, Type)) { //Change Follow text Text = DictionaryConstants.FollowingBlog; } break; case Constants.TelligentContentType.Forum: break; case Constants.TelligentContentType.Group: break; case Constants.TelligentContentType.Page: break; case Constants.TelligentContentType.Weblog: //WIKI //Call Bookmarking functions if (TelligentService.CreateFavorite(CurrentMember.ScreenName, ContentId, ContentTypeId, Type)) { Text = DictionaryConstants.YouAreFollowingLabel; } else { Text = DictionaryConstants.FollowThisQuestionLabel; } break; case Constants.TelligentContentType.Blog: //Call Bookmarking functions if (TelligentService.CreateFavorite(CurrentMember.ScreenName, ContentId, Type)) { //Change Follow text Text = DictionaryConstants.FollowingBlog; } break; default: break; } //if (Type.Equals(UnderstoodDotOrg.Common.Constants.TelligentContentType.BlogPost)) //{ // //Call Bookmarking functions // if (TelligentService.CreateFavorite(CurrentMember.ScreenName, ContentId, ContentTypeId, Type)) // { // //Change Follow text // Text = DictionaryConstants.FollowingBlog; // } //} //else //{ // //Call Bookmarking functions // if (TelligentService.CreateFavorite(CurrentMember.ScreenName, ContentId, Type)) // { // //Change Follow text // Text = DictionaryConstants.FollowingBlog; // } //} }