Exemplo n.º 1
0
        public static string GetValue(SessionBaseName baseName)
        {
            var session = HttpContext.Current.Session[baseName.ToString()];

            if (session == null)
            {
                return("null");
            }

            return(session.ToString());
        }
Exemplo n.º 2
0
 public static void SetVaue(SessionBaseName baseName, object value)
 {
     HttpContext.Current.Session[baseName.ToString()] = value.ToString();
 }