public GenericRepository(GenericDBContext db)
 {
     this.db    = db;
     this.table = db.Set <T>();
 }
 public GenericRepository()
 {
     this.db    = new GenericDBContext();
     this.table = db.Set <T>();
 }