Ejemplo n.º 1
0
        public TagDetails Details(int tagId)
        {
            var tag           = GetTag(tagId);
            var delayProfiles = _delayProfileService.AllForTag(tagId);
            var notifications = _notificationFactory.AllForTag(tagId);
            var restrictions  = _releaseProfileService.AllForTag(tagId);
            var series        = _seriesService.AllForTag(tagId);

            return(new TagDetails
            {
                Id = tagId,
                Label = tag.Label,
                DelayProfileIds = delayProfiles.Select(c => c.Id).ToList(),
                NotificationIds = notifications.Select(c => c.Id).ToList(),
                RestrictionIds = restrictions.Select(c => c.Id).ToList(),
                SeriesIds = series.Select(c => c.Id).ToList()
            });
        }
Ejemplo n.º 2
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 artist        = _artistService.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(),
                ArtistIds = artist.Select(c => c.Id).ToList()
            });
        }