public JsonResult InfoConfirmar()
        {
            CTransaccion data = null;

            if (Session["TRANSACCION"] == null)
            {
                CPersona persona = (CPersona)Session["USUARIO"];

                IRestResponse WSR = Task.Run(() => api.Get("Registro/Transaccion_1_usuario", "pUsuario=" + persona.Usuario)).Result;
                if (WSR.StatusCode == HttpStatusCode.OK)
                {
                    data = JObject.Parse(WSR.Content).ToObject <CTransaccion>();
                    Session["TRANSACCION"] = data;
                }
            }
            else
            {
                data = (CTransaccion)Session["TRANSACCION"];
            }

            return(new JsonResult()
            {
                Data = data,
                ContentType = "json",
                MaxJsonLength = int.MaxValue,
                JsonRequestBehavior = JsonRequestBehavior.AllowGet
            });
        }
        public JsonResult ValidarTran()
        {
            CInicioSesion login       = (CInicioSesion)Session["LOGIN"];
            CTransaccion  transaccion = (CTransaccion)Session["TRANSACCION"];

            IRestResponse WSR = Task.Run(() => api.Get("Operaciones/Verifica_EstadoTransaccion", "pUsuario=" + login.vNombreUsuario + "&pID_Transaccion_Monedero=" + transaccion.Transaccion_Monedero)).Result;

            if (WSR.StatusCode == HttpStatusCode.OK)
            {
                if (WSR.Content.ToString().Replace("\"", "") == "Complete")
                {
                    Session.Clear();
                    TempData.Clear();

                    Autenticar(login);
                }
            }

            return(new JsonResult()
            {
                Data = WSR.Content,
                ContentType = "json",
                MaxJsonLength = int.MaxValue,
                JsonRequestBehavior = JsonRequestBehavior.AllowGet
            });
        }