public ActionResult DeleteConfirmed(int id)
        {
            FabricRestriction fabricRestriction = db.FabricRestrictions.Find(id);

            db.FabricRestrictions.Remove(fabricRestriction);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Id,Name")] FabricRestriction fabricRestriction)
 {
     if (ModelState.IsValid)
     {
         db.Entry(fabricRestriction).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(fabricRestriction));
 }
        public ActionResult Create([Bind(Include = "Id,Name")] FabricRestriction fabricRestriction)
        {
            if (ModelState.IsValid)
            {
                db.FabricRestrictions.Add(fabricRestriction);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(fabricRestriction));
        }
        // GET: FabricRestrictions/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            FabricRestriction fabricRestriction = db.FabricRestrictions.Find(id);

            if (fabricRestriction == null)
            {
                return(HttpNotFound());
            }
            return(View(fabricRestriction));
        }