Пример #1
0
        private async Task GetProductsAsync()
        {
            var result = await ProductAppService.GetListAsync(
                new PagedProductRequestDto
            {
                MaxResultCount = PageSize,
                SkipCount      = CurrentPage * PageSize,
                Sorting        = CurrentSorting
            }
                );

            ProductList = result.Items;
            TotalCount  = (int)result.TotalCount;
        }