Пример #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 }));
 }