public AuthorController(IRepository <Author> bookRepository) { this.bookRepository = bookRepository; }
public BooksController(IRepository <Book> bookRepository, IRepository <Author> authorRepository, IHostingEnvironment hosting) { this.bookRepository = bookRepository; this.authorRepository = authorRepository; this.Hosting = hosting; }