public async Task <ActionResult> SkillFilters(int skillSetId) { var filters = await _taxonomyService.GetSkillFilterTaxonomysAsync(skillSetId); var filterTerms = await _taxonomyService.GetSkillFilterTermsAsync(skillSetId); var skillTerms = await _taxonomyService.GetSkillFilterSkillTermsAsync(skillSetId); var groups = filters .OrderBy(t => t.Name) .Select(t => new SkillFilterDto(t, filterTerms.Where(f => f.TaxonomyId == t.Id).OrderBy(f => f.Name).ToList(), skillTerms)) .ToList(); return(Json(groups)); }