public ActionResult DeleteConfirmed(int id)
        {
            OuterwearColor outerwearColor = db.OuterwearColors.Find(id);

            db.OuterwearColors.Remove(outerwearColor);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "OuterwearColorID,OuterwearColorName")] OuterwearColor outerwearColor)
 {
     if (ModelState.IsValid)
     {
         db.Entry(outerwearColor).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(outerwearColor));
 }
        public ActionResult Create([Bind(Include = "OuterwearColorID,OuterwearColorName")] OuterwearColor outerwearColor)
        {
            if (ModelState.IsValid)
            {
                db.OuterwearColors.Add(outerwearColor);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

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

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