public async Task <IEnumerable <TEntity> > GetAllAsync()
 {
     return(await context.Set <TEntity>().ToListAsync());
 }
 public GenericRepository(PWTranscationContext context)
 {
     this.context = context;
     this.dbSet   = context.Set <TEntity>();
 }