public void AsociarCuentaNumTelMov()
 {
     ReqAsociarCuentaNumTelMov reqCNTM = new ReqAsociarCuentaNumTelMov();
     reqCNTM.cuenta = _cuentaSeleccionada.NumeroCuenta;
     reqCNTM.companiaTelefonoCelular = CompaniaCelularSeleccionada.Id;
     reqCNTM.telefonoCelular = TelefonoSeleccionado;
     reqCNTM.token = string.IsNullOrEmpty(this.Token) ? string.Empty : this.Token;
     reqCNTM.tipoOTP = string.IsNullOrEmpty(this.TipoOTP) ? string.Empty : this.TipoOTP;//ClavesOtros.TransactionSigning;
     if (!IsTokenFinal)
     {
         reqCNTM.fechaHora = string.Empty;
     }
     else
     {
         reqCNTM.fechaHora = FechaHora;
     }
     if (_isAltaCuenta)
     {
         reqCNTM.operacion = ClavesOperacion.AltaCuentaMovil;
     }
     if (_isBajaCuenta)
     {
         reqCNTM.operacion = ClavesOperacion.BajaCuentaMovil;
     }
     if (_isModificaCuenta)
     {
         reqCNTM.operacion = ClavesOperacion.ModificaCuentaMovil;
         reqCNTM.telefonoAnt = "";
         reqCNTM.companiaTelefonoCelularAnt = "";
     }
     Services.AsociarCuentaNumTelMov(base.ServiceRequest, ResponseAsociarCuentaNumTelMov, reqCNTM);
 }
Example #2
0
        public static void AsociarCuentaNumTelMov(ServiceRequest2 serviceRequest, ServiceRequestEventHandler<DtoAsociarCuentaNumTelMov> asyncCallback, ReqAsociarCuentaNumTelMov requestData)
        {
#if OFFLINE
            serviceRequest.BeginWebRequestOffline<ResAsociarCuentaNumTelMov, DtoAsociarCuentaNumTelMov>(Services._serviceAsociarCuentaNumTelMov, asyncCallback, json._jsonAsociarCuentaNumTelMov);
#else
            new Thread(() => { serviceRequest.BeginWebRequest<ResAsociarCuentaNumTelMov, DtoAsociarCuentaNumTelMov, ReqAsociarCuentaNumTelMov>(service._serviceAsociarCuentaNumTelMov, asyncCallback, requestData); }).Start();
#endif
        }