public int Insert(TEntity entity) { _dbContext.Set <TEntity>().Add(entity); _s = _dbContext.SaveChanges(); if (_s > 0) { return(1); } return(0); }