public ActionResult Create(Contact contact)
        {
            if (ModelState.IsValid)
            {
                repo.Insert(contact);
                return RedirectToAction("Index");
            }

            return View(contact);
        }
        public ActionResult Create(Contact contact)
        {
            if (ModelState.IsValid)
            {
                //uow.Contacts.Add(contact);
                //uow.SaveChanges();
                return RedirectToAction("Index");
            }

            //    ViewBag.PersonId = new SelectList(uow.People, "Id", "FirstName", contact.PersonId);
            return View(contact);
        }
 public ActionResult Edit(Contact contact)
 {
     if (ModelState.IsValid)
     {
         uow.Db.Entry(contact).State = EntityState.Modified;
         uow.Db.SaveChanges();
         return RedirectToAction("Index");
     }
        // ViewBag.PersonId = new SelectList(uow.People, "Id", "FirstName", contact.PersonId);
     return View(contact);
 }
 public ActionResult Edit(Contact contact)
 {
     if (ModelState.IsValid)
     {
         repo.Update(contact);
         return RedirectToAction("Index");
     }
     return View(contact);
 }