Beispiel #1
0
 public ActionResult Edit([Bind(Include = "Id,PIP,NPos,Date_Birth,Marka_Auto,Nomer_Auto,Address,Date_Por")] Registration registration)
 {
     if (ModelState.IsValid)
     {
         db.Entry(registration).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(registration));
 }
Beispiel #2
0
 public ActionResult Edit(Registration reg)
 {
     db.Entry(reg).State = EntityState.Modified;
     db.SaveChanges();
     return(RedirectToAction("Index"));
 }