Beispiel #1
0
 public ActionResult Edit([Bind(Include = "Id,Description,InsertedDateTime,ModifiedDateTime")] Country country)
 {
     if (ModelState.IsValid)
     {
         repo.Attach(country);
         repo.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(country));
 }