public AlbumWithSongs GetWithAlbums(long id)
        {
            var album = albumService.FindById(id);
            var songs = songService.FindByAlbumId(id);

            return(new AlbumWithSongs(album, songs));
        }
Exemple #2
0
        public override void Delete(long id)
        {
            IList <Song> songs = songService.FindByAlbumId(id);

            foreach (var song in songs)
            {
                songService.Delete(song.Id);
            }
            base.Delete(id);
        }
 public IList <Song> FindByAlbumId(long albumId)
 {
     return(songService.FindByAlbumId(albumId));
 }
Exemple #4
0
 public IList <Song> GetSongsFromAlbum(long albumId)
 {
     return(this.WrapInUnitOfWork(() => songService.FindByAlbumId(albumId)));
 }