public async Task <int> AddBook(Book newBook) { await _context.Books.AddAsync(newBook); await _context.SaveChangesAsync(); return(newBook.Id); }