public ActionResult DeleteConfirmed(int id)
        {
            CheckEquipmentRequirement checkEquipmentRequirement = db.CheckEquipmentRequirements.Find(id);

            db.CheckEquipmentRequirements.Remove(checkEquipmentRequirement);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "ID,SubType_Arabic,SubType_English,InputFieldType,Description,EquipmentRequirementsTypeId")] CheckEquipmentRequirement checkEquipmentRequirement)
 {
     if (ModelState.IsValid)
     {
         db.Entry(checkEquipmentRequirement).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.EquipmentRequirementsTypeId = new SelectList(db.EquipmentRequirementsTypes, "ID", "Title", checkEquipmentRequirement.EquipmentRequirementsTypeId);
     return(View(checkEquipmentRequirement));
 }
        // GET: CheckEquipmentRequirements/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            CheckEquipmentRequirement checkEquipmentRequirement = db.CheckEquipmentRequirements.Find(id);

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

            if (checkEquipmentRequirement == null)
            {
                return(HttpNotFound());
            }
            ViewBag.EquipmentRequirementsTypeId = new SelectList(db.EquipmentRequirementsTypes, "ID", "Title", checkEquipmentRequirement.EquipmentRequirementsTypeId);
            return(View(checkEquipmentRequirement));
        }