示例#1
0
        // TODO: ask about UnitOfWork and Imapper
        public BookService(IUnitOfWork unitOfWork, IMapper mapper, IHistoryLogHandler <Book> historyLogHandler)
        {
            this.unitOfWork = unitOfWork;
            this.mapper     = mapper;

            this.historyLogHandler = historyLogHandler;
        }
示例#2
0
 //TODO: Check ctor ApplicationDbContext
 public ApplicationDbContext(DbContextOptions <ApplicationDbContext> dbContextOptions, IHistoryLogHandler <Book> historyLogHandler) : base(dbContextOptions)
 {
     this.historyLogHandler = historyLogHandler;
 }