Exemplo n.º 1
0
        public static org_Employees GetUserInfo(this HttpSessionStateBase session)
        {
            if (CurrentSession == null)
            {
                return(new org_Employees());
            }

            var userInfo = CurrentSession.GetValue("UserInfo");

            if (userInfo == null)
            {
                //  userInfo = new org_Employees() { SessionID = session.SessionID };
                CurrentSession.AddValue("UserInfo", userInfo);
            }

            return((org_Employees)userInfo);
        }