public ActionResult DeleteConfirmed(int id)
        {
            OS_Asbestos oS_Asbestos = db.OS_Asbestos.Find(id);

            db.OS_Asbestos.Remove(oS_Asbestos);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "asbestosID,asbestos")] OS_Asbestos oS_Asbestos)
 {
     if (ModelState.IsValid)
     {
         db.Entry(oS_Asbestos).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(oS_Asbestos));
 }
        public ActionResult Create([Bind(Include = "asbestosID,asbestos")] OS_Asbestos oS_Asbestos)
        {
            if (ModelState.IsValid)
            {
                db.OS_Asbestos.Add(oS_Asbestos);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

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

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