public ActionResult Editar(int?id) { if (id != 0) { PessoaModel pessoaModel = new PessoaModel(); ViewBag.GetByID = pessoaModel.GetByID(Convert.ToInt16(id)); return(View()); } else { return(RedirectToAction("index")); } }