示例#1
0
        public TagDetails Details(int tagId)
        {
            var tag           = GetTag(tagId);
            var delayProfiles = _delayProfileService.AllForTag(tagId);
            var importLists   = _importListFactory.AllForTag(tagId);
            var notifications = _notificationFactory.AllForTag(tagId);
            var restrictions  = _releaseProfileService.AllForTag(tagId);
            var author        = _authorService.AllForTag(tagId);
            var rootFolders   = _rootFolderService.AllForTag(tagId);

            return(new TagDetails
            {
                Id = tagId,
                Label = tag.Label,
                DelayProfileIds = delayProfiles.Select(c => c.Id).ToList(),
                ImportListIds = importLists.Select(c => c.Id).ToList(),
                NotificationIds = notifications.Select(c => c.Id).ToList(),
                RestrictionIds = restrictions.Select(c => c.Id).ToList(),
                AuthorIds = author.Select(c => c.Id).ToList(),
                RootFolderIds = rootFolders.Select(c => c.Id).ToList()
            });
        }