public ActionResult DeleteConfirmed(int id)
        {
            HouseholdType householdType = db.HouseholdTypes.Find(id);

            db.HouseholdTypes.Remove(householdType);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "HouseholdTypeID,Type")] HouseholdType householdType)
 {
     if (ModelState.IsValid)
     {
         db.Entry(householdType).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(householdType));
 }
        public ActionResult Create([Bind(Include = "HouseholdTypeID,Type")] HouseholdType householdType)
        {
            if (ModelState.IsValid)
            {
                db.HouseholdTypes.Add(householdType);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

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

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