public ViewResult Taxonomy() { var firmaPage = FirmaPage.GetFirmaPageByPageType(FirmaPageType.Taxonomy); var topLevelTaxonomyTierAsFancyTreeNodes = MultiTenantHelpers.GetTaxonomyLevel() .GetTaxonomyTiers().SortByOrderThenName().Select(x => x.ToFancyTreeNode(CurrentPerson)) .ToList(); var viewData = new TaxonomyViewData(CurrentPerson, firmaPage, topLevelTaxonomyTierAsFancyTreeNodes); return(RazorView <Taxonomy, TaxonomyViewData>(viewData)); }
public ViewResult Taxonomy() { var firmaPage = FirmaPageTypeEnum.Taxonomy.GetFirmaPage(); var topLevelTaxonomyTierAsFancyTreeNodes = MultiTenantHelpers.GetTaxonomyLevel() .GetTaxonomyTiers(HttpRequestStorage.DatabaseEntities).OrderBy(x => x.SortOrder) .ThenBy(x => x.DisplayName, StringComparer.InvariantCultureIgnoreCase) .Select(x => x.ToFancyTreeNode(CurrentFirmaSession)) .ToList(); var viewData = new TaxonomyViewData(CurrentFirmaSession, firmaPage, topLevelTaxonomyTierAsFancyTreeNodes); return(RazorView <Taxonomy, TaxonomyViewData>(viewData)); }