Exemple #1
0
        protected async void LoadItems()
        {
            IsLoading = true;
            StateHasChanged();
            HistoryModel historyModel = await HttpClient.GetFromJsonAsync <HistoryModel>($"/api/history?page={Page}");

            List <IListItem> items = historyModel.GetItems();

            IsEmpty = items.Count() == 0;
            HistoryItems.AddRange(items);
            StateHasChanged();
        }