public ActionResult DeleteConfirmed(int id)
        {
            ValveSectionStatus valvesectionstatus = db.ValveSectionStatus.Find(id);

            db.ValveSectionStatus.Remove(valvesectionstatus);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
        //
        // GET: /ValveSectionStatus/Delete/5

        public ActionResult Delete(int id = 0)
        {
            ValveSectionStatus valvesectionstatus = db.ValveSectionStatus.Find(id);

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

            return(View(valvesectionstatus));
        }