public TEntity Create(TEntity newEntity) { context.Set <TEntity>() .Add(newEntity); context.SaveChanges(); return(newEntity); }