public async Task AddBookAsync(Book book) { _context.Add(book); await SaveChangesAsync(); }
public async Task AddAuthorAsync(Author author) { context.Add(author); await SaveChangesAsync(); }