示例#1
0
 public ActionResult Edit(Mission mission)
 {
     _db.Entry(mission).State = EntityState.Modified;
     _db.SaveChanges();
     return(RedirectToAction("Details", new { id = mission.MissionId }));
 }
示例#2
0
 public ActionResult Edit(Manifest manifest)
 {
     _db.Entry(manifest).State = EntityState.Modified;
     _db.SaveChanges();
     return(RedirectToAction("Details", new { id = manifest.ManifestId }));
 }
示例#3
0
 public ActionResult Edit(Ship ship)
 {
     _db.Entry(ship).State = EntityState.Modified;
     _db.SaveChanges();
     return(RedirectToAction("Details", new { id = ship.ShipId }));
 }