public ActionResult consultar_documentos_pendientes_principal_detalle() { IEnumerable <SIGESDOC.Response.SP_CONSULTAR_DOCUMENTOS_PENDIENTES_DETALLE_Result> resp_det = new List <SIGESDOC.Response.SP_CONSULTAR_DOCUMENTOS_PENDIENTES_DETALLE_Result>(); if (HttpContext.Request.IsAuthenticated) { if (HttpContext.User.Identity.Name.Split('|')[7].Trim() == "2") { string documento = ""; if (HttpContext.User.Identity.Name.Split('|')[5].Trim() == "20") { documento = HttpContext.User.Identity.Name.Split('|')[1].Trim(); } resp_det = _GeneralService.Consultar_documentos_pendientes_detalle(documento, Convert.ToInt32(HttpContext.User.Identity.Name.Split('|')[4].Trim())); } } return(Json(resp_det, JsonRequestBehavior.AllowGet)); }