public BaseRepository(AttendanceDbContext context) { this.context = context; this.dbSet = context.Set <TEntity>(); }
public virtual T GetById(int id) { return(_dbContext.Set <T>().Find(id)); }
public BaseRepository(AttendanceDbContext context) { this.context = context; this.dbSet = context.Set <TEntity>(); }
public virtual T GetById(int id) { return(_dbContext.Set <T>().Find(id)); }