public EventRepository(EventDBContext db)
 {
     dBContext = db;
     entities  = dBContext.Set <T>();
 }