Issue/567 (#568)

* Correctly manage page count when Page size = 0

* make =>TODO: Need to change the api to support full list
Manage to support full list when pagesize is unknow
This commit is contained in:
Cédric Michel authored and GitHub committed 2021-10-24 17:41:36 -04:00
1 parent cafd5d0544
commit 5b5abd9c8d
3 files changed
+16 -5

No files matched your search

@@ -84,9 +84,8 @@ namespace BlazorAdmin.Services
_logger.LogInformation("Fetching catalog items from API.");
var brandListTask = _brandService.List();
var typeListTask = _typeService.List();
//TODO: Need to change the api to support full list
var itemListTask = _httpService.HttpGet<PagedCatalogItemResponse>($"catalog-items?PageSize=100");
var typeListTask = _typeService.List();
var itemListTask = _httpService.HttpGet<PagedCatalogItemResponse>($"catalog-items");
await Task.WhenAll(brandListTask, typeListTask, itemListTask);
var brands = brandListTask.Result;
var types = typeListTask.Result;