private void Update( int id , int newqty ) { ProcessUpdateShoppingCart processUpdate = new ProcessUpdateShoppingCart(); LiveFreeRange.Common.ShoppingCart shoppingCart = new LiveFreeRange.Common.ShoppingCart(); shoppingCart.Quantity = newqty; shoppingCart.ShoppingCartId = id; processUpdate.ShoppingCart = shoppingCart; try { processUpdate.Invoke(); } catch { Response.Redirect( "ErrorPage.aspx" ); } }
private void Delete( int id ) { ProcessDeleteShoppingCart processDelete = new ProcessDeleteShoppingCart(); LiveFreeRange.Common.ShoppingCart shoppingCart = new LiveFreeRange.Common.ShoppingCart(); shoppingCart.ShoppingCartId = id; processDelete.ShoppingCart = shoppingCart; try { processDelete.Invoke(); } catch { Response.Redirect( "ErrorPage.aspx" ); } }
private void LoadShoppingCart() { LiveFreeRange.Common.ShoppingCart shoppingcart = new LiveFreeRange.Common.ShoppingCart(); shoppingcart.CartGuid = CartGUID; ProcessGetShoppingCart processGetCart = new ProcessGetShoppingCart(); processGetCart.ShoppingCart = shoppingcart; try { processGetCart.Invoke(); gvShoppingCart.DataSource = processGetCart.ResultSet; gvShoppingCart.DataBind(); } catch(Exception ex) { Response.Redirect( "ErrorPage.aspx" ); } }
public ShoppingCartInsertDataParameters(ShoppingCart shoppingCart) { ShoppingCart = shoppingCart; this.Build(); }
public ShoppingCartUpdateDataParameters(ShoppingCart shoppingCart) { ShoppingCart = shoppingCart; this.Build(); }
public ShoppingCartByGuidDeleteDataParameters(ShoppingCart shoppingCart) { ShoppingCart = shoppingCart; this.Build(); }
private void LoadShoppingCart() { LiveFreeRange.Common.ShoppingCart shoppingCart = new LiveFreeRange.Common.ShoppingCart(); shoppingCart.CartGuid = Utilities.GetCartGUID(); ProcessGetShoppingCart processGetCart = new ProcessGetShoppingCart(); processGetCart.ShoppingCart = shoppingCart; try { processGetCart.Invoke(); this.gvShoppingCart.DataSource = processGetCart.ResultSet; this.gvShoppingCart.DataBind(); } catch { Response.Redirect("ErrorPage.aspx"); } }