コード例 #1
0
 public AuthorController(ILogger <AuthorController> logger, BookLibraryContext db)
 {
     _logger          = logger;
     authorRepository = new AuthorRepository(db);
     linkRepository   = new AuthorBookLinkRepository(db);
 }
コード例 #2
0
 public BookController(ILogger <BookController> logger, BookLibraryContext db)
 {
     _logger        = logger;
     bookRepository = new BookRepository(db);
     linkRepository = new AuthorBookLinkRepository(db);
 }