public AuthorController(ILogger <AuthorController> logger, BookLibraryContext db) { _logger = logger; authorRepository = new AuthorRepository(db); linkRepository = new AuthorBookLinkRepository(db); }
public BookController(ILogger <BookController> logger, BookLibraryContext db) { _logger = logger; bookRepository = new BookRepository(db); linkRepository = new AuthorBookLinkRepository(db); }