public ActionResult Create(Contacts contact) { if (ModelState.IsValid) { ContactClient cc = new ContactClient(); cc.AddContact(contact); return(RedirectToAction("Index", "Contact")); } return(View("Create")); }
public ActionResult Create(Contacts contact) { if (ModelState.IsValid) { ContactClient cc = new ContactClient(); cc.AddContact(contact); return(RedirectToAction("Index", "Contact")); } return(View("Create")); }