public UnitOfWork(LibraryContext libraryContext, IReaderRepository readerRepository, IReaderCardRepository readerCardRepository, IRecordRepository recordRepository, IBookRepository bookRepository, IChapterRepository chapterRepository, IAuthorBookRepository authorBookRepository, IAuthorRepository authorRepository) { _libraryContext = libraryContext; ReaderRepository = readerRepository; ReaderCardRepository = readerCardRepository; RecordRepository = recordRepository; BookRepository = bookRepository; ChapterRepository = chapterRepository; AuthorBookRepository = authorBookRepository; AuthorRepository = authorRepository; }
public UnitOfWork(LibraryContext libraryContext, SignInManager <User> signInManager, UserManager <User> userManager, IReaderRepository readerRepository, IReaderCardRepository readerCardRepository, IRecordRepository recordRepository, IBookRepository bookRepository, IChapterRepository chapterRepository, IAuthorBookRepository authorBookRepository, IAuthorRepository authorRepository) { _libraryContext = libraryContext; SignInManager = signInManager; UserManager = userManager; ReaderRepository = readerRepository; ReaderCardRepository = readerCardRepository; RecordRepository = recordRepository; BookRepository = bookRepository; ChapterRepository = chapterRepository; AuthorBookRepository = authorBookRepository; AuthorRepository = authorRepository; }