public void AddBookWithNoGenre(string bookName, string author) { BooksAndAuthors.Add(new KeyValuePair <string, string>(author, bookName)); }
public void AddBook(string bookName, string author, string genre) { BooksAndAuthors.Add(new KeyValuePair <string, string>(author, bookName)); BooksByGenreFromTitle.Add(new KeyValuePair <string, string>(bookName, genre)); }