public ActionResult DeleteConfirmed(int id)
        {
            ClothingTable clothingTable = db.ClothingTables.Find(id);

            db.ClothingTables.Remove(clothingTable);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "ClothingID,Name,Photo,Color,Occasion,Season,ClothingType")] ClothingTable clothingTable)
 {
     if (ModelState.IsValid)
     {
         db.Entry(clothingTable).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(clothingTable));
 }
        public ActionResult Create([Bind(Include = "ClothingID,Name,Photo,Color,Occasion,Season,ClothingType")] ClothingTable clothingTable)
        {
            if (ModelState.IsValid)
            {
                db.ClothingTables.Add(clothingTable);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

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

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