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