private static PersonalizationInfo LoadProfile()
 {
     HttpContext context = HttpContext.Current;
     PersonalizationInfo objPersonalization = (PersonalizationInfo)context.Items["Personalization"];
     if (objPersonalization == null)
     {
         PortalSettings _portalSettings = (PortalSettings)context.Items["PortalSettings"];
         Entities.Users.UserInfo UserInfo = Entities.Users.UserController.GetCurrentUserInfo();
         PersonalizationController objPersonalizationController = new PersonalizationController();
         objPersonalization = objPersonalizationController.LoadProfile(UserInfo.UserID, _portalSettings.PortalId);
         context.Items.Add("Personalization", objPersonalization);
     }
     return objPersonalization;
 }
        private static PersonalizationInfo LoadProfile()
        {
            HttpContext         context            = HttpContext.Current;
            PersonalizationInfo objPersonalization = (PersonalizationInfo)context.Items["Personalization"];

            if (objPersonalization == null)
            {
                PortalSettings            _portalSettings = (PortalSettings)context.Items["PortalSettings"];
                Entities.Users.UserInfo   UserInfo        = Entities.Users.UserController.GetCurrentUserInfo();
                PersonalizationController objPersonalizationController = new PersonalizationController();
                objPersonalization = objPersonalizationController.LoadProfile(UserInfo.UserID, _portalSettings.PortalId);
                context.Items.Add("Personalization", objPersonalization);
            }
            return(objPersonalization);
        }