public ActionResult carregarAssociadoNaoAssociado(int?id) { var DadosPessoa = new PessoaVW(); if (id > 0) { DadosPessoa = this.OPessoaVWBL.carregar(id.toInt()) ?? new PessoaVW(); } return(Json(new { DadosPessoa, error = false, message = "" }, JsonRequestBehavior.AllowGet)); }
private string getUrlCadastro(PessoaVW OPessoaVW) { var urlCadastro = ""; if (OPessoaVW.flagCategoriaPessoa == "AS") { urlCadastro = Url.Action(null, null, new { area = "Associados", id = OPessoaVW.idReferencia }); } else if (OPessoaVW.flagCategoriaPessoa == "FO") { urlCadastro = Url.Action("editar", "FornecedorCadastro", new { area = "Fornecedores", id = OPessoaVW.idReferencia }); } else if (OPessoaVW.flagCategoriaPessoa == "PA") { //urlCadastro = Url.Action("editar", "patrocinador", new {area = "Patrocinadores", id = OPessoaVW.idReferencia}); } return(urlCadastro); }