Exemplo n.º 1
0
        public static SocialProfile CreateSocialProfileIfNeeded()
        {
            SocialProfile result;

            if (ShouldUseSocialProfileFromSession)
            {
                result = GetSocialProfileFormSession();
            }
            else
            {
                result = new SocialProfile(BindAuthenticationModel(), BindUserModel());
            }

            return(result);
        }
Exemplo n.º 2
0
 public static void SetSocialProfileToSession(SocialProfile profile)
 {
     HttpContext.Current.Session.Add("SocialProfile", profile);
 }