public AuthorController(IBookstoreRepositories <Author> authorRepository)
 {
     this.authorRepository = authorRepository;
 }
示例#2
0
 public BookController(IBookstoreRepositories <Book> bookRepository, IBookstoreRepositories <Author> authorRepository, IHostingEnvironment hosting)
 {
     this.bookRepository   = bookRepository;
     this.authorRepository = authorRepository;
     this.hosting          = hosting;
 }