protected async Task DoPage(int page, int perPage) { Take = perPage; CurrentPage += page; Values = await Page.Invoke(CurrentPage, Take); await ValuesChanged.InvokeAsync(Values); }
protected async Task DoSort(string header) { if (SortDirection != SortDirection.Ascending) { SortDirection = SortDirection.Ascending; } else { SortDirection = SortDirection.Descending; } SortBy = header; Values = await Sort.Invoke(header, SortDirection); await ValuesChanged.InvokeAsync(Values); }