Exemple #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            ValveSectionError valvesectionerror = db.ValveSectionErrors.Find(id);

            db.ValveSectionErrors.Remove(valvesectionerror);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Exemple #2
0
        //
        // GET: /ValveSectionError/Delete/5

        public ActionResult Delete(int id = 0)
        {
            ValveSectionError valvesectionerror = db.ValveSectionErrors.Find(id);

            if (valvesectionerror == null)
            {
                return(HttpNotFound());
            }
            return(View(valvesectionerror));
        }
Exemple #3
0
 public ActionResult Edit(ValveSectionError valvesectionerror)
 {
     if (ModelState.IsValid)
     {
         db.Entry(valvesectionerror).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(valvesectionerror));
 }
Exemple #4
0
        public ActionResult Create(ValveSectionError valvesectionerror)
        {
            if (ModelState.IsValid)
            {
                db.ValveSectionErrors.Add(valvesectionerror);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(valvesectionerror));
        }