public JsonResult PesquisaProtocolosIndenizados() { if (this.Logado != ((char)Enums.Logado.Sim).ToString()) { return(this.Json(new { redirectUrl = Url.Action("Login", "Login"), Logado = true }, JsonRequestBehavior.AllowGet)); } try { N0203REGBusiness n0203REGBusiness = new N0203REGBusiness(); List <Ocorrencia> ListaProtocolosPendentes = new List <Ocorrencia>(); ListaProtocolosPendentes = n0203REGBusiness.PesquisaProtocolosIndenizados("", "", "", "", "", "", "", "11", "", Convert.ToInt64(this.CodigoUsuarioLogado)); return(this.Json(new { ListaProtocolosPendentes, sucesso = true }, JsonRequestBehavior.AllowGet)); } catch (Exception ex) { this.Session["ExceptionErro"] = ex; return(this.Json(new { redirectUrl = Url.Action("ErroException", "Erro"), ErroExcecao = true }, JsonRequestBehavior.AllowGet)); } }