public ActionResult Create(FormCollection telefone) { var novotelefone = new Telefone(); int idpessoa = Convert.ToInt32(telefone["IdPessoa.IdPessoa"].ToString()); novotelefone.IdPessoa = _service.ObterPorPessoa(idpessoa); novotelefone.Numero = telefone["Numero"]; novotelefone.Tipo = telefone["Tipo"]; if (ModelState.IsValid) { _service.Adicionar(novotelefone); return(RedirectToAction("Index", "Pessoa")); } return(View(telefone)); }