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); }
private static void saveLastProduct(ChartObject obj, string cartName) { complementaryCarts[cartName].lastInserted = obj; }