public virtual async Task <LeftNavigationViewModel> LeftNavigation()
        {
            var result = new LeftNavigationViewModel
            {
                MenuItems   = GetMenuItems(),
                GroupItems  = _groupHelper.GroupNavigation(),
                MyLinks     = await GetMyLinksAsync(),
                SharedLinks = GetSharedLinks()
            };

            return(result);
        }
예제 #2
0
        public override ConverterResponseModel MapViewModel(UintraGroupsCreatePageModel node, UintraGroupsCreatePageViewModel viewModel)
        {
            if (!_groupService.CanCreate())
            {
                return(ForbiddenResult());
            }

            var settings = _mediaHelper.GetMediaFolderSettings(MediaFolderTypeEnum.GroupsContent);

            viewModel.Navigation             = _groupHelper.GroupNavigation();
            viewModel.AllowedMediaExtensions = settings?.AllowedMediaExtensions;

            return(OkResult());
        }
 public void Map(UintraMyGroupsPageModel node, UintraMyGroupsPageViewModel viewModel)
 {
     viewModel.Navigation = _groupHelper.GroupNavigation();
 }