public ActionResult DeleteConfirmed(int id)
        {
            IncidentalContracType incidentalContracType = db.IncidentalContracTypes.Find(id);

            db.IncidentalContracTypes.Remove(incidentalContracType);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "IncidentalContracTypeId,IncidentalContracTypeTitle,IncidentalContracDescription,IncidentalContracMvcController,SmartContractId,IncidentalContracTypeActive")] IncidentalContracType incidentalContracType)
 {
     if (ModelState.IsValid)
     {
         db.Entry(incidentalContracType).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.SmartContractId = new SelectList(db.SmartContracts, "SmartContractId", "SmartContractName", incidentalContracType.SmartContractId);
     return(View(incidentalContracType));
 }
        // GET: IncidentalContracTypes/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            IncidentalContracType incidentalContracType = db.IncidentalContracTypes.Find(id);

            if (incidentalContracType == null)
            {
                return(HttpNotFound());
            }
            return(View(incidentalContracType));
        }
        // GET: IncidentalContracTypes/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            IncidentalContracType incidentalContracType = db.IncidentalContracTypes.Find(id);

            if (incidentalContracType == null)
            {
                return(HttpNotFound());
            }
            ViewBag.SmartContractId = new SelectList(db.SmartContracts, "SmartContractId", "SmartContractName", incidentalContracType.SmartContractId);
            return(View(incidentalContracType));
        }