Пример #1
0
 public BookController(IbookstoreRepository <Book> bookRepository,
                       IbookstoreRepository <Author> authorRepository,
                       IHostingEnvironment hosting)
 {
     this.bookRepository   = bookRepository;
     this.authorRepository = authorRepository;
     this.hosting          = hosting;
 }
Пример #2
0
 public AuthorController(IbookstoreRepository <Author> authorRepository)
 {
     this.authorRepository = authorRepository;
 }