public UserRepository(OnlineCoursesDbContext dbContext, IMapper mapper) : base(dbContext, mapper)
 {
     _dbContext = dbContext;
     _mapper    = mapper;
 }
 public CourseRepository(OnlineCoursesDbContext dbContext, IMapper mapper) : base(dbContext, mapper)
 {
     _dbContext = dbContext;
 }
Exemple #3
0
 public Repository(OnlineCoursesDbContext dbContext, IMapper mapper)
 {
     _dbContext = dbContext;
     _dbSet     = _dbContext.Set <T>();
     _mapper    = mapper;
 }