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); }
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; }