public ActionResult DeleteConfirmed(int id) { ValveSectionError valvesectionerror = db.ValveSectionErrors.Find(id); db.ValveSectionErrors.Remove(valvesectionerror); db.SaveChanges(); return(RedirectToAction("Index")); }
// // GET: /ValveSectionError/Delete/5 public ActionResult Delete(int id = 0) { ValveSectionError valvesectionerror = db.ValveSectionErrors.Find(id); if (valvesectionerror == null) { return(HttpNotFound()); } return(View(valvesectionerror)); }
public ActionResult Edit(ValveSectionError valvesectionerror) { if (ModelState.IsValid) { db.Entry(valvesectionerror).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(valvesectionerror)); }
public ActionResult Create(ValveSectionError valvesectionerror) { if (ModelState.IsValid) { db.ValveSectionErrors.Add(valvesectionerror); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(valvesectionerror)); }