public UnitOfWork(WorkFollowDataContext dbContext) { _dbContext = dbContext; reportRepository = new EfReportRepository(_dbContext); urgencyRepository = new EfUrgencyRepository(_dbContext); taskRepository = new EfTaskRepository(_dbContext); userRepository = new EfUserRepository(_dbContext); }
public DataService(ApplicationDbContext dbContext) { _dbContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext)); ManagerRepository = new EfManagerRepository(_dbContext); TaskRepository = new EfTaskRepository(_dbContext); }