コード例 #1
0
 public void Exportar(InfoCliente[] clientes)
 {
     try
     {
         using (var scope = new TransactionScope(TransactionScopeOption.Required, new TimeSpan(0, 0, 55)))
         {
             ClienteDAL.Atualiza(clientes);
             scope.Complete();
         }
     }
     catch (Exception exception)
     {
         LogErro.Registrar(exception.Message);
         throw;
     }
 }
コード例 #2
0
 public void Exporta(InfoLoginVendedor infoLogin)
 {
     try
     {
         using (var scope = new TransactionScope(TransactionScopeOption.Required, new TimeSpan(0, 0, 55)))
         {
             LoginDAL.Atualiza(infoLogin);
             scope.Complete();
         }
     }
     catch (Exception exception)
     {
         LogErro.Registrar(exception.Message);
         throw;
     }
 }