public ActionResult DeleteConfirmed(int id)
        {
            WorkSho workSho = db.WorkShoes.Find(id);

            db.WorkShoes.Remove(workSho);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "WorkShoesID,WorkShoesName,WorkShoesPhoto,WorkShoesColor,WorkShoesSeason,WorkShoesOccasion,WorkShoesType")] WorkSho workSho)
 {
     if (ModelState.IsValid)
     {
         workSho.WorkShoesPhoto  = "~/Content/Images/MensDressShoes.jpg";
         workSho.WorkShoesType   = "Work";
         db.Entry(workSho).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(workSho));
 }
        // GET: WorkShoes/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            WorkSho workSho = db.WorkShoes.Find(id);

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