예제 #1
0
        public static IEnumerable <WeProduct> Query(ProductStatus status)
        {
            string          url     = WeUtil.GetUrl(WeShopConst.PRODUCT_STATUS_URL);
            WeProductStatus request = new WeProductStatus(status);
            var             result  = WeUtil.PostToUri(url, request.WriteJson(), new WeProductList());

            return(result.ProductsInfo);
        }
예제 #2
0
 public static IEnumerable<WeProduct> Query(ProductStatus status)
 {
     string url = WeUtil.GetUrl(WeShopConst.PRODUCT_STATUS_URL);
     WeProductStatus request = new WeProductStatus(status);
     var result = WeUtil.PostToUri(url, request.WriteJson(), new WeProductList());
     return result.ProductsInfo;
 }