public ActionResult GetSongInfo(string artist, string track, bool ret = false, string extra = "") { ViewBag.song = FunctionsMusic.GetTrackInfo(artist, track); ViewBag.lyrics = FunctionsMusic.GetLyric(artist, track); if (extra != "") { ViewBag.artist = extra; } else { ViewBag.artist = FunctionsMusic.GetArtistInfo(artist); } ViewBag.toptracks = FunctionsMusic.GetTopTracks(artist); ViewBag.ret = ret; return(View()); }
public ActionResult GetLyric(string artist, string track) { ViewBag.lyrics = FunctionsMusic.GetLyric(artist, track); ViewBag.title = artist + " - " + track; return(View()); }