public static void AddOrUpdateBookGenre(AppDbContext db, Book book, Genre GenreToAdd) { if (book.Genre == GenreToAdd) //new artist is the same as the original artist { //do nothing } else { book.Genre = GenreToAdd; } }
public Book(string inputName, Genre SongGenres) { Title = inputName; Genre = SongGenres; }