public async Task <ActionResult> DescriptorCategoryList() { var model = new DescriptorCategoriesModel { DescriptorCategories = (await _odsApiFacadeFactory.Create()).GetAllDescriptors() }; return(PartialView("_DescriptorCategories", model)); }
public async Task <ActionResult> DescriptorCategoryList() { var descriptorCategoryPaths = (await _odsApiFacadeFactory.Create()).GetAllDescriptors(); var model = new DescriptorCategoriesModel { DescriptorCategories = descriptorCategoryPaths.Select(path => new DescriptorCategoriesModel.Category { Path = path, Name = path.GetDescriptorCategoryName() }).OrderBy(x => x.Name).ToList() }; return(PartialView("_DescriptorCategories", model)); }