public ActionResult Contact(Contact contact) { if (ModelState.IsValid) { IContactRepo repo = Factory.GetContactRepo(); repo.Insert(contact); return(RedirectToAction("Index")); } return(View(contact)); }
public ActionResult Contact(Contact contact) { if (ModelState.IsValid) { IContactRepo repo = Factory.GetContactRepo(); repo.Insert(contact); return(RedirectToAction("Index")); } return(View(contact)); }