/// <summary> /// Gets all songs of the specified artist /// </summary> /// <param name="artistId">artist ID</param> /// <returns>All available songs</returns> public IEnumerable <SongDTO> GetAllSongsForArtist(int artistId) { var albums = artistService.GetAllAlbumsForArtist(artistId); List <SongDTO> songs = new List <SongDTO>(); foreach (var album in albums) { foreach (var songID in album.SongIDs) { songs.Add(songService.GetSong(songID)); } } return(songs); }