public ActionResult DeleteConfirmed(int id)
        {
            ShoeColor shoeColor = db.ShoeColors.Find(id);

            db.ShoeColors.Remove(shoeColor);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "ShoeColorID,ShoeColorName")] ShoeColor shoeColor)
 {
     if (ModelState.IsValid)
     {
         db.Entry(shoeColor).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(shoeColor));
 }
        public ActionResult Create([Bind(Include = "ShoeColorID,ShoeColorName")] ShoeColor shoeColor)
        {
            if (ModelState.IsValid)
            {
                db.ShoeColors.Add(shoeColor);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

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

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