protected async Task Load() { Category = await CategoryApiService.Get(Id); Events = await EventApiService.GetUpcomingForCategory(Id); IsLoading = false; }
protected async Task Load() { var category = await CategoryApiService.Get(Id); Name = category.Name; UpcomingEvents = await EventApiService.GetUpcomingForCategory(Id); IsLoading = false; StateHasChanged(); }