public void Inserir(TEntity obj) { try { repositorio.BeginTransaction(); repositorio.Insert(obj); repositorio.Commit(); } catch (Exception ex) { repositorio.Rollback(); throw new Exception(ex.Message); } }