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