public async Task <JsonResult> OnPostLlenarTabla([FromBody] RequestPagination pag)
        {
            IdUser      = User.Claims.Where(x => x.Type == ClaimTypes.NameIdentifier).Select(x => x.Value).SingleOrDefault();
            Participant = User.Claims.Where(x => x.Type == "Participant").Select(x => x.Value).SingleOrDefault();
            Confirmant  = User.Claims.Where(x => x.Type == "Confirmant").Select(x => x.Value).SingleOrDefault();
            Country     = User.Claims.Where(x => x.Type == "Country").Select(x => x.Value).SingleOrDefault();
            var token    = HttpContext.Session.GetString("token");
            var currency = pag.Filter.Currency_id;

            if (pag.Filter != null)
            {
                if ((pag.Filter.AmountRiskTo == null && pag.Filter.AmountRiskAvailableFrom == null && pag.Filter.AmountRiskAvailableTo == null && pag.Filter.AmountRiskFrom == null))
                {
                    pag.Filter.Currency_id = null;
                }
            }

            prospectoLimiteCredito.List = new List <Prospecto>();
            var Estados = await _globalService.ConsultaIdentificationsAndCitiesTF(new ParamCountry { Id = Int32.Parse(Country) });

            var listaUsuarios = await _peopleService.ConsultaDatosEjecutivoCuentasAsync(new ParamCreditLimit { Confirmant = Confirmant, Country = int.Parse(Country), User = IdUser, Filter = pag.Filter, Pagination = pag.Pagination }, token);

            if (listaUsuarios.Error == null)
            {
                var id = User.Claims.Where(x => x.Type == "Id").Select(x => x.Value).SingleOrDefault();
                var l  = await _aS.RefreshToken(id, CultureInfo.CurrentCulture.Name, Participant, token, Confirmant);

                if (l.Error == null)
                {
                    HttpContext.Session.SetString("token", l.Token);
                }
            }

            if (listaUsuarios != null)
            {
                if (listaUsuarios.List != null)
                {
                    foreach (var usuario in listaUsuarios.List)
                    {
                        if (usuario.Identities != null)
                        {
                            foreach (var participante in usuario.Identities)
                            {
                                if (participante.Participant == "DEBTOR")
                                {
                                    prospectoLimiteCredito.List.Add(usuario);
                                }
                            }
                        }
                    }
                }
                else
                {
                    prospectoLimiteCredito = null;
                }
            }

            prospectoLimiteCredito.Error = listaUsuarios.Error;
            return(new JsonResult(new { prospecto = prospectoLimiteCredito, estados = Estados, idCurrency = currency }));
        }