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