public ActionResult Create(Contact contact) { if (ModelState.IsValid) { unitOfWork.contactRepository.Insert(contact); unitOfWork.Save(); return RedirectToAction("Index"); } return View(contact); }