public ActionResult Create(Pessoa p)
        {
            try
            {
                var mc = new ModelContainer();

                mc.AddToPessoas(p);
                mc.SaveChanges();

                return RedirectToAction("Index");
            }
            catch
            {
                return View();
            }
        }
        public ActionResult Delete(Pessoa p)
        {
            try
            {
                var mc = new ModelContainer();

                mc.Pessoas.Attach(p);
                mc.Pessoas.DeleteObject(p);
                mc.SaveChanges();

                return RedirectToAction("Index");
            }
            catch
            {
                return View();
            }
        }
        public ActionResult Edit(int id, Pessoa p)
        {
            try
            {
                var mc = new ModelContainer();

                mc.Pessoas.Attach(p);
                mc.ObjectStateManager.ChangeObjectState(p, EntityState.Modified);
                mc.SaveChanges();

                return RedirectToAction("Index");
            }
            catch
            {
                return View();
            }
        }