示例#1
0
 private void getProducts()
 {
     if (_filter.ChildCategoryId != 0)
     {
         var data = _productAPI.GetProductsByChildCategoryId(_filter.ChildCategoryId);
         var list = new List <Product>();
         var arr  = ((JArray)data.Data).Children();
         foreach (var i in arr)
         {
             var item = i.ToObject <Product>();
             list.Add(item);
         }
         this.Products = list;
     }
 }