示例#1
0
        public ActionResult AbumsByArtist(string id_artist)
        {
            Artists ar      = new Artists();
            var     artists = ar.GetArtistsFromAPI();

            var artistList = from artist in artists
                             where artist.Id_artist == id_artist
                             select artist;

            foreach (var item in artistList)
            {
                ViewBag.Title = item.Name_artist;
            }

            var albums = al.GetAlbumsbyIdFromAPI(id_artist);

            return(View(albums));
        }