public ActionResult Index() { if (!CurrentStoreFrontConfigOrThrow.UseShoppingCart) { RedirectToAction("Index", "Checkout"); } if (!CheckAccess()) { return(BounceToLogin()); } Cart cart = CurrentStoreFrontOrThrow.GetCart(Session.SessionID, CurrentUserProfileOrNull); CartConfigViewModel cartConfig = CurrentStoreFrontConfigOrThrow.CartConfigViewModel(false, false); GStoreDb.LogUserActionEvent(HttpContext, RouteData, this, UserActionCategoryEnum.Cart, UserActionActionEnum.Cart_View, "", true, (cart == null ? (int?)null : cart.CartId)); ViewData.Add("CartConfig", cartConfig); return(View("Index", cart)); }
public ActionResult TestPayPal() { bool result = CurrentStoreFrontConfigOrThrow.TestPayPal(this); return(RedirectToAction("Index")); }