示例#1
0
 public void EnviaCodigoVerificacionSms(int idUsuario, int idTipoNotificacion, int idTelefono)
 {
     try
     {
         using (BusinessUsuarios negocio = new BusinessUsuarios())
         {
             negocio.EnviaCodigoVerificacionSms(idUsuario, idTipoNotificacion, idTelefono);
         }
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
示例#2
0
 protected void rbtnList_OnSelectedIndexChanged(object sender, EventArgs e)
 {
     try
     {
         if (rbtnCorreo.Checked)
         {
             hfValueNotivicacion.Value = _servicioUsuario.EnviaCodigoVerificacionCorreo(int.Parse(QueryString.Decrypt(Request.Params["ldata"])), (int)BusinessVariables.EnumeradoresStreaming.EnumTipoLink.Reset);
         }
         else if (rbtnSms.Checked)
         {
             _servicioUsuario.EnviaCodigoVerificacionSms(int.Parse(QueryString.Decrypt(Request.Params["ldata"])), (int)BusinessVariables.EnumeradoresStreaming.EnumTipoLink.Reset, int.Parse(rbtnList.SelectedValue));
         }
     }
     catch (Exception ex)
     {
         if (_lstError == null)
         {
             _lstError = new List <string>();
         }
         _lstError.Add(ex.Message);
         AlertaGeneral = _lstError;
     }
 }