public static SocialProfile CreateSocialProfileIfNeeded() { SocialProfile result; if (ShouldUseSocialProfileFromSession) { result = GetSocialProfileFormSession(); } else { result = new SocialProfile(BindAuthenticationModel(), BindUserModel()); } return(result); }
public static void SetSocialProfileToSession(SocialProfile profile) { HttpContext.Current.Session.Add("SocialProfile", profile); }