public LevelRepositoryAsync(ToeicOnlineContext dbContext, IMapper mapper) : base(dbContext) { _levels = dbContext.Set <Level>(); _mapper = mapper; }
public virtual async Task <T> GetByIdAsync(int id) { return(await _dbContext.Set <T>().FindAsync(id)); }
public ClassRepositoryAsync(ToeicOnlineContext dbContext, IMapper mapper) : base(dbContext) { _classes = dbContext.Set <Class>(); _mapper = mapper; }