public ActionResult DeleteConfirmed(int id)
        {
            SpecialDesign specialDesign = db.SpecialDesigns.Find(id);

            db.SpecialDesigns.Remove(specialDesign);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "SpecialDesignId,Design")] SpecialDesign specialDesign)
 {
     if (ModelState.IsValid)
     {
         db.Entry(specialDesign).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(specialDesign));
 }
        public ActionResult Create([Bind(Include = "SpecialDesignId,Design")] SpecialDesign specialDesign)
        {
            if (ModelState.IsValid)
            {
                db.SpecialDesigns.Add(specialDesign);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

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

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