public ActionResult Edit(Stage stage) { if (ModelState.IsValid) { db.Entry(stage).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("Index"); } return View(stage); }
public ActionResult Create(Stage stage) { if (ModelState.IsValid) { db.Stages.Add(stage); db.SaveChanges(); return RedirectToAction("Index"); } return View(stage); }