Ejemplo n.º 1
0
 public AuthorController(IBookstorerepository <author> authorrepository)
 {
     this.authorrepository = authorrepository;
 }
        // GET: Book


        public BookController(IBookstorerepository <Book> bookRepository, IBookstorerepository <Author> authorRepository, IHostingEnvironment hosting)
        {
            this.bookRepository   = bookRepository;
            this.authorRepository = authorRepository;
            this.hosting          = hosting;
        }
Ejemplo n.º 3
0
 public BookController(IBookstorerepository <book> bookrepository, IBookstorerepository <author> authorrepository)
 {
     this.bookrepository   = bookrepository;
     this.authorrepository = authorrepository;
 }