public ActionResult DeleteConfirmed(int id)
        {
            LeisureAccessory leisureAccessory = db.LeisureAccessories.Find(id);

            db.LeisureAccessories.Remove(leisureAccessory);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "LeisureAccessoryID,LeisureAccessoryName,LeisureAccessoryPhoto,LeisureAccessoryColor,LeisureAccessorySeason,LeisureAccessoryOccasion,LeisureAccessoryType")] LeisureAccessory leisureAccessory)
 {
     if (ModelState.IsValid)
     {
         leisureAccessory.LeisureAccessoryPhoto = "~/Content/Images/SunglassesAccessory.jpg";
         leisureAccessory.LeisureAccessoryType  = "Leisure";
         db.Entry(leisureAccessory).State       = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(leisureAccessory));
 }
        // GET: LeisureAccessories/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            LeisureAccessory leisureAccessory = db.LeisureAccessories.Find(id);

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