public PartialViewResult Header(string currentPageName = "") { var headerModel = new HeaderViewModel(); headerModel.AppSettings = HostSettingsAppService.GetAppSettings(); if (InfrastructureSession.UserId.HasValue) { headerModel.LoginInformations = AsyncHelper.RunSync(() => _sessionAppService.GetCurrentLoginInformationsAsync()); } headerModel.Menu = AsyncHelper.RunSync(() => _userNavigationManager.GetMenuAsync(HomeNavigationProvider.MenuName, InfrastructureSession.ToUserIdentifier())); headerModel.CurrentPageName = currentPageName; headerModel.IsMultiTenancyEnabled = _multiTenancyConfig.IsEnabled; headerModel.TenantRegistrationEnabled = SettingManager.GetSettingValue <bool>(AppSettings.TenantManagement.AllowSelfRegistration); return(PartialView(headerModel)); }