Пример #1
0
        public static void setBreadCrumb(List <BreadCrumb> lstBreadCrumb)
        {
            MySessionLib objSession = SessionManagerLib.getSession();

            objSession.BreadCrumb = lstBreadCrumb;
            SessionManagerLib.writeSession(objSession);
        }
Пример #2
0
 private static void writeSession(MySessionLib session)
 {
     if ((HttpContext.Current != null))
     {
         HttpContext.Current.Session.Add("mysessionlib", session);
     }
 }
Пример #3
0
        //public static void cleanSession()
        //{
        //    if ((HttpContext.Current != null))
        //    {
        //        if (((HttpContext.Current.Session["mysessionlib"] != null)))
        //        {
        //            HttpContext.Current.Session.Clear();
        //        }
        //    }
        //}

        public static List <BreadCrumb> getBreadCrumb()
        {
            MySessionLib objSession = SessionManagerLib.getSession();

            return(objSession.BreadCrumb);
        }