public ActionResult Cart() { var cartId = string.Empty; var hmac = string.Empty; var authentication = this.GetConfig(); var wrapper = new AmazonWrapper(authentication, this._amazonEndpoint, this._associateTag); if (Session["cartId"] == null) { return(View()); } else { cartId = Session["cartId"] as string; hmac = Session["hmac"] as string; } var result = wrapper.CartGet(cartId, hmac); return(View(result.Cart)); }