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