Exemplo n.º 1
0
        public ActionResult CheckOut(string userName, string sessionId)
        {
            List <CartCookie> cartCookies = CookieFile.GetCartCookie(Request.Cookies);
            Boolean           success     = PurchaseData.CheckOut(cartCookies, "akzin");

            if (success)
            {
                RemoveCookieData();
                return(RedirectToAction("MyPurchase", "Purchase", new { sessionId }));
            }
            else
            {
                return(View());
            }
        }