public static void UpdateShoppingCart(UpdateCartInfo updateCartObj, AspxCommonInfo aspxCommonObj)
 {
     try
     {
         AspxCartProvider.UpdateShoppingCart(updateCartObj, aspxCommonObj);
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Exemplo n.º 2
0
        public void UpdateShoppingCart(UpdateCartInfo updateCartObj, AspxCommonInfo aspxCommonObj)
        {
            List <KeyValuePair <string, object> > parameter = new List <KeyValuePair <string, object> >();

            parameter.Add(new KeyValuePair <string, object>("CartID", updateCartObj.CartID));
            parameter.Add(new KeyValuePair <string, object>("CartItemIDs", updateCartObj.CartItemIDs));
            parameter.Add(new KeyValuePair <string, object>("Quantities", updateCartObj.Quantities));
            parameter.Add(new KeyValuePair <string, object>("StoreID", aspxCommonObj.StoreID));
            parameter.Add(new KeyValuePair <string, object>("PortalID", aspxCommonObj.PortalID));
            parameter.Add(new KeyValuePair <string, object>("AllowOutOfStock", updateCartObj.AllowOutOfStock));
            parameter.Add(new KeyValuePair <string, object>("UserName", aspxCommonObj.UserName));
            parameter.Add(new KeyValuePair <string, object>("CultureName", aspxCommonObj.CultureName));
            OracleHandler sqlH = new OracleHandler();

            sqlH.ExecuteNonQuery("usp_Aspx_UpdateShoppingCart", parameter);
        }
Exemplo n.º 3
0
 public static void UpdateShoppingCart(UpdateCartInfo updateCartObj, AspxCommonInfo aspxCommonObj)
 {
     try
     {
         List<KeyValuePair<string, object>> parameter =CommonParmBuilder.GetParamSPUC(aspxCommonObj);
         parameter.Add(new KeyValuePair<string, object>("@CartID", updateCartObj.CartID));
         parameter.Add(new KeyValuePair<string, object>("@CartItemIDs", updateCartObj.CartItemIDs));
         parameter.Add(new KeyValuePair<string, object>("@Quantities", updateCartObj.Quantities));
         parameter.Add(new KeyValuePair<string, object>("@AllowOutOfStock", updateCartObj.AllowOutOfStock));
         SQLHandler sqlH = new SQLHandler();
         sqlH.ExecuteNonQuery("usp_Aspx_UpdateShoppingCart", parameter);
     }
     catch (Exception e)
     {
         throw e;
     }
 }
 public static void UpdateShoppingCart(UpdateCartInfo updateCartObj, AspxCommonInfo aspxCommonObj)
 {
     try
     {
         AspxCartProvider.UpdateShoppingCart(updateCartObj, aspxCommonObj);
     }
     catch (Exception e)
     {
         throw e;
     }
 }
 public static void UpdateShoppingCart(UpdateCartInfo updateCartObj, AspxCommonInfo aspxCommonObj)
 {
     try
     {
         List<KeyValuePair<string, object>> parameter =CommonParmBuilder.GetParamSPUC(aspxCommonObj);
         parameter.Add(new KeyValuePair<string, object>("@CartID", updateCartObj.CartID));
         parameter.Add(new KeyValuePair<string, object>("@CartItemIDs", updateCartObj.CartItemIDs));
         parameter.Add(new KeyValuePair<string, object>("@Quantities", updateCartObj.Quantities));
         parameter.Add(new KeyValuePair<string, object>("@AllowOutOfStock", updateCartObj.AllowOutOfStock));
         SQLHandler sqlH = new SQLHandler();
         sqlH.ExecuteNonQuery("usp_Aspx_UpdateShoppingCart", parameter);
     }
     catch (Exception e)
     {
         throw e;
     }
 }
 public void UpdateShoppingCart(UpdateCartInfo updateCartInfo, AspxCommonInfo aspxCommonObj)
 {
     try
     {
         AspxCartController.UpdateShoppingCart(updateCartInfo, aspxCommonObj);
     }
     catch (Exception e)
     {
         throw e;
     }
 }