public BookController() { BookStoreEntities _entity = new BookStoreEntities(); this._bookRepository = new BookRepository(_entity); this._bookCategoryRepository = new BookCategoryRepository(_entity); }
public BooksController(IAllBooks iAllBooks, IBookCategory iBooksCat) { _allBooks = iAllBooks; _allCategories = iBooksCat; }
public BookCategoryController(IBookCategory book_category) { _book_category = book_category; }
public BookCategoryController() { this._bookCategoryRepository = new BookCategoryRepository(new BookStoreEntities()); }
public BooksController(IAllBook allBook, IBookCategory bookCategory) { ViewBag.Title = "Страница магазина"; _AllBook = allBook; _AllBookCategory = bookCategory; }