public ActionResult ObterProtocolo(int id, bool isProcesso) { List <PessoaLst> lista = _busProtocolo.ObterInteressadoRepresentantes(id); IProtocolo protocolo = _busProtocolo.ObterSimplificado(id); if (lista.Count == 0) { lista.Add(new PessoaLst() { Id = protocolo.Interessado.Id }); } return(Json(new { @EhValido = Validacao.EhValido, @Msg = Validacao.Erros, @Objeto = new { @Id = id, @Numero = protocolo.Numero, @EmpreendimentoId = protocolo.Empreendimento.Id, @EmpreendimentoNome = protocolo.Empreendimento.Denominador, @Interessado = protocolo.Interessado, @Representantes = lista } })); }