コード例 #1
0
        // TODO This should get paged with an optional pagesize.
        private async Task Read(ProductCategory category, ProductSubcategory subcategory, string namePart)
        {
            ProductsOverviewList productsOverview;

            try
            {
                productsOverview = await ProductsServiceClient.GetProductsOverviewByAsync(
                    category?.Id,
                    subcategory?.Id,
                    namePart);
            }
            catch (Exception exception)
            {
                DisplayAlert(exception);
                return;
            }

            foreach (var product in productsOverview)
            {
                items.Add(product);
            }
        }