Beispiel #1
0
        public ChartComplementary()
        {
            lastInserted = new ChartObject();
            prodRow = new Product();

            message = new Message();
        }
        public ActionResult LastAddedProduct()
        {
            ChartObject chartObject = new ChartObject();
            string cookieValue;

            if (CookieModel.IsCookieValid(Request, out cookieValue))
                chartObject = ShoppingChart.LastAddedProduct(cookieValue);

            return View(chartObject);
        }
Beispiel #3
0
 private static void saveLastProduct(ChartObject obj, string cartName)
 {
     complementaryCarts[cartName].lastInserted = obj;
 }