Ejemplo n.º 1
0
 /// <summary>
 /// Get an album from with the specified name, artist name and library
 /// </summary>
 /// <param name="albumName"></param>
 /// <param name="artistName"></param>
 /// <param name="libraryId"></param>
 /// <returns></returns>
 public static Album GetAlbumInLibrary(string albumName, string artistName, int libraryId) =>
 AlbumCollection.Where(album => (album.LibraryId == libraryId) && (album.Name == albumName) && (album.ArtistName == artistName)).FirstOrDefault();