Пример #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);
        }