示例#1
0
 public ActionResult Create(Mission mission)
 {
     _db.Missions.Add(mission);
     _db.SaveChanges();
     return(RedirectToAction("Index"));
 }
示例#2
0
 public ActionResult Create(Manifest manifest)
 {
     _db.Manifests.Add(manifest);
     _db.SaveChanges();
     return(RedirectToAction("Index"));
 }
示例#3
0
 public ActionResult Create(Ship ship)
 {
     _db.Ships.Add(ship);
     _db.SaveChanges();
     return(RedirectToAction("Index"));
 }