public ActionResult DeleteConfirmed(int id)
        {
            prompttype prompttype = db.prompttypes.Find(id);

            db.prompttypes.Remove(prompttype);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit(prompttype prompttype)
 {
     if (ModelState.IsValid)
     {
         db.Entry(prompttype).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(prompttype);
 }
        //
        // GET: /PromptType/Delete/5

        public ActionResult Delete(int id = 0)
        {
            prompttype prompttype = db.prompttypes.Find(id);

            if (prompttype == null)
            {
                return(HttpNotFound());
            }
            return(View(prompttype));
        }
 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);
        }
        public ActionResult Create(prompttype prompttype)
        {
            if (ModelState.IsValid)
            {
                db.prompttypes.Add(prompttype);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(prompttype));
        }