コード例 #1
0
 public ActionResult GetArtistInfo(string artist, bool ret = false)
 {
     ViewBag.artist    = FunctionsMusic.GetArtistInfo(artist);
     ViewBag.toptracks = FunctionsMusic.GetTopTracks(artist);
     ViewBag.ret       = ret;
     return(View());
 }
コード例 #2
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());
 }
コード例 #3
0
 public ActionResult GetAlbums(string artist)
 {
     ViewBag.artist = FunctionsMusic.GetArtistInfo(artist);
     ViewBag.albums = FunctionsMusic.GetAlbums(artist);
     return(View());
 }