示例#1
0
        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;
        }
示例#2
0
        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();
        }