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")); }