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; } }
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; } }