public BookContainer(IBookDAL bookDAL, ICourseContainer courseContainer, ISectorContainer sectorContainer, IUserContainer userContainer) { this._bookDAL = bookDAL; this._courseContainer = courseContainer; this._sectorContainer = sectorContainer; this._userContainer = userContainer; }
public BorrowAdmin() { dalFactory = new DALFactory(); readerDAL = dalFactory.GetReaderDAL(); readerTypeDAL = dalFactory.GetReaderTypeDAL(); bookDAL = dalFactory.GetBookDAL(); borrowDAL = dalFactory.GetBorrowDAL(); }
//InsertIntoDB(Ibook,IAuthor,ICSV) public void InsertIntoDB(List <AuthorBook> items, IBookDAL bookDAL, IAuthorDAL authorDAL) { var book = new Book(); var author = new Author(); foreach (var item in items) { author.authorName = item.authorName; book.bookName = item.bookName; if (authorDAL.SearchAuthorByName(author.authorName) == null) { ; } { authorDAL.InsertAuthor(author); } book.authorId = authorDAL.SearchAuthorByName(author.authorName).id; bookDAL.InsertBook(book); } }
public BookService(IBookDAL dal) { this.bookDal = dal; }
public BookContainerSQL(IBookDAL bookDAL) { this._bookDAL = bookDAL; }
public BookLogic(IBookDAL bookDAL) { _bookDAL = bookDAL; }
public BookDALFactory() { Data = new BookDAL(new LibrayContextFactory().Create()); }
public BookDALFactory(ILibrayContext context) { Data = new BookDAL(context); }
public BookService(IBookDAL bookDAL) { _bookDAL = bookDAL; }
public BookManager(IBookDAL _bookDAL) { bookDAL = _bookDAL; }
public BookManager(IBookDAL bookDal) { _bookDal = bookDal; }
public BooksController(IBookDAL DAL) { this.DAL = DAL; }
public BookManager(IBookDAL bookDAL) { _bookDAL = bookDAL; }
//Binds the dal for ninject so the controller has access to it public HomeController(IBookDAL bookDAL) { _bookDAL = bookDAL; }
public BorrowInfoService(IBorrowInfoDAL dal,IBookDAL dalB) { this.borrowDal = dal; this.bookDal = dalB; }