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