예제 #1
0
        protected async Task Load()
        {
            Category = await CategoryApiService.Get(Id);

            Events = await EventApiService.GetUpcomingForCategory(Id);

            IsLoading = false;
        }
예제 #2
0
        protected async Task Load()
        {
            var category = await CategoryApiService.Get(Id);

            Name           = category.Name;
            UpcomingEvents = await EventApiService.GetUpcomingForCategory(Id);

            IsLoading = false;
            StateHasChanged();
        }