public ActionResult Edit(EnderecoViewModel endereco)
        {
            if (ModelState.IsValid)
            {
                var enderecoDomain = Mapper.Map<EnderecoViewModel, Endereco>(endereco);
                _enderecoApp.Update(enderecoDomain);

                return RedirectToAction("Index");
            }

            return View(endereco);
        }
        public ActionResult Create(EnderecoViewModel endereco)
        {
            if (ModelState.IsValid)
            {
                var enderecoDomain = Mapper.Map<EnderecoViewModel, Endereco>(endereco);
                _enderecoApp.Add(enderecoDomain);

                return RedirectToAction("Index");
            }
            ViewBag.IdPessoa = new SelectList(_pessoaApp.GetAll(), "IdPessoa", "Nome", endereco.IdPessoa);
            return View(endereco);
        }