public async Task <JsonResult> OnPostLlenarTabla([FromBody] RequestPagination pag) { var token = HttpContext.Session.GetString("token"); 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(); prospectoValidar = await _peopleService.ConsultaDatosParaVerificarAsync(Confirmant, pag.Filter, pag.Pagination, token); if (prospectoValidar.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 (prospectoValidar != null) { prospectoValidar.List.Sort((b, a) => a.CreatedAt.Date.CompareTo(b.CreatedAt.Date)); } var Estados = await _globalService.ConsultaEstatesTF(new ParamCountry { Id = Int32.Parse(Country) }); return(new JsonResult(new { prospecto = prospectoValidar, estados = Estados })); }