public async Task <IViewComponentResult> InvokeAsync()
        {
            var vm = new ListPathsViewModel();

            var appRegistrationModels = await appRegistryDataService.GetAppRegistrationModels();

            vm.AppRegistrationModels = appRegistrationModels.Where(w => !string.IsNullOrWhiteSpace(w.TopNavigationText));

            return(View(vm));
        }
Пример #2
0
        public async Task <IViewComponentResult> InvokeAsync()
        {
            var vm = new ListPathsViewModel();

            var paths = await pathDataService.GetPaths().ConfigureAwait(false);

            vm.Paths = paths.Where(w => !string.IsNullOrWhiteSpace(w.TopNavigationText));

            return(View(vm));
        }