public AuthorService() { var context = new DAL.EF.LibraryContext(); _authorInBookRepository = new AuthorInBookRepository(context); _authorRepository = new AuthorRepository(context); _bookRepository = new BookRepository(context); }
public AuthorService(AuthorRepository authorRepository, AuthorInBookRepository authorInBookRepository) { _authorRepository = authorRepository; _authorInBookRepository = authorInBookRepository; }
public BookService(BookRepository bookRepository, AuthorInBookRepository authorInBookRepository, PublicHouseInBookRepository publicHouseInBookRepository) { _bookRepository = bookRepository; _authorInBookRepository = authorInBookRepository; _publicHouseInBookRepository = publicHouseInBookRepository; }