Ejemplo n.º 1
0
        public async Task <ActionResult> GetAlbumArtwork(string artist, string title)
        {
            var album = await _repo.GetAlbumOrCreate(artist, title);

            if (album == null)
            {
                return(NotFound());
            }

            var artworkUrl = await _artworkService.GetArtworkUrlFor(album);

            if (artworkUrl == null)
            {
                return(NotFound());
            }

            return(Redirect(artworkUrl));
        }