public ActionResult Editar(int?id, string error) { try { PessoaDTO PessoaDTO; if (!id.HasValue || id == 0) { PessoaDTO = new PessoaDTO { Ativo = true }; } else { PessoaDTO = _pessoaAppService.FindPessoa(id.Value); } return(View(PessoaDTO)); } catch (Exception ex) { return(View("Error", ex)); } }