public Task <AccessCode> GetBy(Expression <Func <AccessCode, bool> > predicate) { using (ZpiDbContext db = _dbContext) { return(Task.FromResult(_dbContext.AccessCodes.FirstOrDefault(predicate))); } }
public UserRepository(ZpiDbContext dbContext) { _dbContext = dbContext; }
public AccessCodeRepository(ZpiDbContext dbContext) { _dbContext = dbContext; }
public TagRepository(ZpiDbContext dbContext) { _dbContext = dbContext; }
public VideoRepository(ZpiDbContext dbContext) { _dbContext = dbContext; }
public CourseRepository(ZpiDbContext dbContext) { _dbContext = dbContext; }
public CategoryRepository(ZpiDbContext dbContext) { _dbContext = dbContext; }
public RaitingRepository(ZpiDbContext dbContext) { _dbContext = dbContext; }