public ActionResult DeleteConfirmed(int id)
        {
            IcpReason icpReason = db.IcpReasons.Find(id);

            db.IcpReasons.Remove(icpReason);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Id,Name")] IcpReason icpReason)
 {
     if (ModelState.IsValid)
     {
         db.Entry(icpReason).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(icpReason));
 }
        public ActionResult Create([Bind(Include = "Id,Name")] IcpReason icpReason)
        {
            if (ModelState.IsValid)
            {
                db.IcpReasons.Add(icpReason);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

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

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