Beispiel #1
0
 public ActionResult Edit([Bind(Include = "ContactId,Name,MobileNumber")] Contact contact)
 {
     if (ModelState.IsValid)
     {
         repository.Change(contact);
         return(RedirectToAction("Index"));
     }
     return(View(contact));
 }