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

            db.ValveSectionErrors.Remove(valvesectionerror);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Beispiel #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));
        }
Beispiel #3
0
 public ActionResult Edit(ValveSectionError valvesectionerror)
 {
     if (ModelState.IsValid)
     {
         db.Entry(valvesectionerror).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(valvesectionerror));
 }
Beispiel #4
0
        public ActionResult Create(ValveSectionError valvesectionerror)
        {
            if (ModelState.IsValid)
            {
                db.ValveSectionErrors.Add(valvesectionerror);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(valvesectionerror));
        }