예제 #1
0
        public PartialViewResult AlbumSongList(int albumId)
        {
            var trmservice = new WebService.WCFWebServiceJson();
            var artist = trmservice.GetArtist(WebSecurity.CurrentUserId);
            var songList = trmservice.GetAlbumSongs(albumId);
            var album = trmservice.GetAllAlbums().FirstOrDefault(a => a.AlbumId == albumId);

            ViewBag.AlbumId = albumId;
            ViewBag.AlbumTitle = album.AlbumTitle;

            return PartialView(songList);
        }
예제 #2
0
        public PartialViewResult ViewAlbum(int albumId)
        {
            var trmservice = new WebService.WCFWebServiceJson();
            var album = trmservice.GetAllAlbums().FirstOrDefault(a => a.AlbumId == albumId);
            ViewBag.AlbumCoverPath = MusicManagerBase.StreamingUrl + album.AlbumCover;
            ViewBag.ArtistName = trmservice.GetArtist(WebSecurity.CurrentUserId).ArtistName;

            return PartialView(album);
        }