public ActionResult consultar_documentos_pendientes_principal() { string texto_pendiente = ""; 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(); } int cantidad = _GeneralService.Consultar_documentos_pendientes(documento, Convert.ToInt32(HttpContext.User.Identity.Name.Split('|')[4].Trim())).contador ?? 0; if (cantidad == 1) { texto_pendiente = "TIENES " + cantidad.ToString() + " DOCUMENTO PENDIENTE"; } else { texto_pendiente = "TIENES " + cantidad.ToString() + " DOCUMENTOS PENDIENTES"; } } } return(Json(texto_pendiente, JsonRequestBehavior.AllowGet)); }