Exemple #1
0
        private IPicture[] GetMediaPictureTag()
        {
            var pictures = new IPicture[4]
            {
                GetAlbumCoverToPicture(Track.ArtExtraLarge),
                GetAlbumCoverToPicture(Track.ArtLarge),
                GetAlbumCoverToPicture(Track.ArtMedium),
                GetAlbumCoverToPicture(Track.ArtSmall)
            }.Where(x => x != null).ToList();

            return(pictures.Any() ? new[] { pictures.First() } : null);
        }
Exemple #2
0
 private bool PictureExists(int id)
 {
     return(_IPicture.Any(id).Result);
 }