コード例 #1
0
        public TopNavigationModel Get()
        {
            var result = new TopNavigationModel
            {
                CurrentUser        = _intranetUserService.GetCurrentUser(),
                CentralUserListUrl = _contentPageContentPropvider.GetUserListContentPageFromPicker()?.Url
            };

            return(result);
        }
コード例 #2
0
        public virtual UserListLinkModel GetUserListLink()
        {
            var contentPage = _contentPageContentPropvider.GetUserListContentPageFromPicker();

            return(new UserListLinkModel()
            {
                ContentPage = contentPage,
                IsVisible = contentPage != null,
                Name = contentPage?.Name,
                Url = contentPage?.Url
            });
        }