public ActionResult DeleteConfirmed(int id)
        {
            InformalBottom informalBottom = db.InformalBottoms.Find(id);

            db.InformalBottoms.Remove(informalBottom);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "InformalBottomID,InformalBottomName,InformalBottomPhoto,InformalBottomColor,InformalBottomSeason,InformalBottomOccasion,InformalBottomType")] InformalBottom informalBottom)
 {
     if (ModelState.IsValid)
     {
         informalBottom.InformalBottomPhoto = "~/Content/Images/jeans.jpg";
         informalBottom.InformalBottomType  = "Informal";
         db.Entry(informalBottom).State     = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(informalBottom));
 }
        // GET: InformalBottoms/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            InformalBottom informalBottom = db.InformalBottoms.Find(id);

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