public ActionResult DeleteConfirmed(int id)
        {
            IngredientDescriptionType ingredientdescriptiontype = db.IngredientDescriptionTypes.Single(i => i.IngredientDescriptionTypeID == id);

            db.IngredientDescriptionTypes.DeleteObject(ingredientdescriptiontype);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit(IngredientDescriptionType ingredientdescriptiontype)
 {
     if (ModelState.IsValid)
     {
         db.IngredientDescriptionTypes.Attach(ingredientdescriptiontype);
         db.ObjectStateManager.ChangeObjectState(ingredientdescriptiontype, EntityState.Modified);
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(ingredientdescriptiontype));
 }
        public ActionResult Create(IngredientDescriptionType ingredientdescriptiontype)
        {
            if (ModelState.IsValid)
            {
                db.IngredientDescriptionTypes.AddObject(ingredientdescriptiontype);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(ingredientdescriptiontype));
        }
        //
        // GET: /IngredientDescriptionType/Delete/5

        public ActionResult Delete(int id)
        {
            IngredientDescriptionType ingredientdescriptiontype = db.IngredientDescriptionTypes.Single(i => i.IngredientDescriptionTypeID == id);

            return(View(ingredientdescriptiontype));
        }