Ejemplo n.º 1
0
 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());
 }
Ejemplo n.º 2
0
 public ActionResult GetLyric(string artist, string track)
 {
     ViewBag.lyrics = FunctionsMusic.GetLyric(artist, track);
     ViewBag.title  = artist + " - " + track;
     return(View());
 }