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