コード例 #1
0
            private async Task <HttpResponseMessage> UpdateEcommerceProduct(Module module)
            {
                var product = new EcommerceItem {
                    product = new ProductItem {
                        id    = module.EcommerceId,
                        title = module.Title
                    }
                };

                return(await Woocommerce.UpdateProduct(
                           product, _configuration
                           ));
            }
コード例 #2
0
            private async Task <HttpResponseMessage> UpdateEcommerceProduct(Track track, long ecommerceId)
            {
                var product = new EcommerceItem {
                    product = new ProductItem {
                        id    = ecommerceId,
                        title = track.Title
                    }
                };

                return(await Woocommerce.UpdateProduct(
                           product, _configuration
                           ));
            }