public async Task <ActionResult> SkillSet(int skillSetId) { var skills = (await _skillService.GetSkillsAsync(skillSetId)).Where(s => s.Removed == false).ToList(); var hierarchyTerms = (await _taxonomyService.GetHierarchyTermsAsync(skillSetId)); var skillTerms = await _taxonomyService.GetHierarchySkillTermsAsync(skillSetId); var groups = hierarchyTerms .Where(t => t.ParentTaxonomyTermId == null) .OrderBy(t => t.Name) .Select(t => new SkillGroupDto(t, hierarchyTerms, skillTerms, skills)) .ToList(); return(Json(groups)); }