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