private async Task LoadAsync() { var input = new GetPagedGigsRequest { Filter = Keyword, CategoryId = Category?.Id }; var results = await GigAppService.GetListAsync(input); GigList = results.Items.Where(x => x.IsPublished).ToList(); TotalCount = results.TotalCount; }
protected override async Task OnInitializedAsync() { var input = new GetPagedGigsRequest() { MaxResultCount = 3, Sorting = "CreationTime asc" }; var results = await GigAppService.GetListAsync(input); GigList = results.Items; await base.OnInitializedAsync(); }