public ActionResult DeleteConfirmed(int id)
        {
            ShoesTable shoesTable = db.ShoesTables.Find(id);

            db.ShoesTables.Remove(shoesTable);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "ShoesID,NameShoes,Type,Color,Season,Occasion,Photo")] ShoesTable shoesTable)
 {
     if (ModelState.IsValid)
     {
         db.Entry(shoesTable).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(shoesTable));
 }
        public ActionResult Create([Bind(Include = "ShoesID,NameShoes,Type,Color,Season,Occasion,Photo")] ShoesTable shoesTable)
        {
            if (ModelState.IsValid)
            {
                db.ShoesTables.Add(shoesTable);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

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

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