Exemple #1
0
        public async Task <int?> GetProductCount()
        {
            var result = await _client.GetProductsAsync();

            return(result.Data?.Products?.TotalCount);
        }
Exemple #2
0
        public async Task <List <ICatalogProductDto> > GetProducts()
        {
            var result = await _client.GetProductsAsync(1, 5000);

            return(result.Data.Products.ToList());
        }