示例#1
0
        private void setProductImages()
        {
            if (Selected == null)
            {
                throw new Exception("No Property Property");
            }
            var data = _productApi.GetPropertyImages(Selected.ProductPropertyId);

            this.ProductImages           = JArrayToList.Convert <ProductImage>(data.Data);
            this.SelectedProductImageUrl = ProductImages[0].Url;
        }
        private List <ProductImage> getImages()
        {
            if (cheaperProductProperty == null)
            {
                throw new Exception("No Product Property");
            }
            var data = _productAPI.GetPropertyImages(cheaperProductProperty.ProductPropertyId);
            var list = JArrayToList.Convert <ProductImage>(data.Data);

            return(list);
        }