Beispiel #1
0
        // GET: Purchases
        public ActionResult Index(string sessionId)
        {
            PurchaseData.CheckoutCart(sessionId);
            int customerId = CustomerData.GetCustomerbySessionId(sessionId).CustomerId;

            List <Product> productHistory = PurchaseData.GetProductHistory(customerId);

            ViewData["ProductHistory"] = productHistory;
            ViewData["sessionId"]      = sessionId;
            ViewData["CustomerId"]     = customerId;

            Product p1 = new Product();

            return(View(p1));
        }