Example #1
0
        public BookController()
        {
            BookStoreEntities _entity = new BookStoreEntities();

            this._bookRepository         = new BookRepository(_entity);
            this._bookCategoryRepository = new BookCategoryRepository(_entity);
        }
Example #2
0
 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());
 }
Example #5
0
 public BooksController(IAllBook allBook, IBookCategory bookCategory)
 {
     ViewBag.Title    = "Страница магазина";
     _AllBook         = allBook;
     _AllBookCategory = bookCategory;
 }