public ActionResult ImpactCatDeleteConfirmed(int id)
        {
            ImpactCat cat = db.ImpactCats.Single(p => p.ImpactCatId == id);

            db.ImpactCats.Remove(cat);
            db.SaveChanges();
            return(RedirectToAction("ImpactCatList"));
        }
 public ActionResult ImpactCatNew(ImpactCat cat)
 {
     if (ModelState.IsValid)
     {
         db.ImpactCats.Add(cat);
         db.SaveChanges();
         return(RedirectToAction("ImpactCatList"));
     }
     return(View(cat));
 }
 public ActionResult ImpactCatEdit(ImpactCat cat)
 {
     if (ModelState.IsValid)
     {
         db.ImpactCats.Attach(cat);
         db.Entry(cat).State = System.Data.Entity.EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("ImpactCatList"));
     }
     return(View(cat));
 }