Beispiel #1
0
 public ActionResult Edit(Machine mach)
 {
     _db.Entry(mach).State = EntityState.Modified;
     _db.SaveChanges();
     return(RedirectToAction("Index"));
 }
 public ActionResult Edit(Engineer eng)
 {
     _db.Entry(eng).State = EntityState.Modified;
     _db.SaveChanges();
     return(RedirectToAction("Index"));
 }