コード例 #1
0
        public static void update(int userid, int productid, int qty)
        {
            Cart cart = getCart(productid, userid);

            if (qty == 0)
            {
                CartHandler.delete(cart);
            }
            else
            {
                CartHandler.update(cart, qty);
            }
        }
コード例 #2
0
        public static void delete(int productid, int userid)
        {
            Cart cart = getCart(productid, userid);

            CartHandler.delete(cart);
        }