public AlbumWithSongs GetWithAlbums(long id) { var album = albumService.FindById(id); var songs = songService.FindByAlbumId(id); return(new AlbumWithSongs(album, songs)); }
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)); }
public IList <Song> GetSongsFromAlbum(long albumId) { return(this.WrapInUnitOfWork(() => songService.FindByAlbumId(albumId))); }