예제 #1
0
 static ListeCart()
 {
     if (HttpContext.Current.Session["MonpanierVirtuel"] == null)
     {
         Instance       = new ListeCart();
         Instance.Items = new List <Item>();
         HttpContext.Current.Session["MonpanierVirtuel"] = Instance;
     }
     else
     {
         Instance = (ListeCart)HttpContext.Current.Session["MonpanierVirtuel"];
     }
 }
예제 #2
0
        static ListeCart()
        {

            if (HttpContext.Current.Session["MonpanierVirtuel"] == null)
            {

                Instance = new ListeCart();
                Instance.Items = new List<Item>();
                HttpContext.Current.Session["MonpanierVirtuel"] = Instance;

            }
            else
                Instance = (ListeCart)HttpContext.Current.Session["MonpanierVirtuel"];
        }