public ActionResult Delete(int?id)

        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            var db = new qhsedbEntities();
            disciplinary_action disciplinary_action = db.disciplinary_action.Find(id);

            if (disciplinary_action == null)
            {
                return(HttpNotFound());
            }



            var disciplinary_actionRow = db.disciplinary_action.Find(id);

            db.disciplinary_action.Remove(disciplinary_actionRow);

            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Ejemplo n.º 2
0
        public ActionResult Delete(int?id)

        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            var        db         = new qhsedbEntities();
            dbo_audits dbo_audits = db.dbo_audits.Find(id);

            if (dbo_audits == null)
            {
                return(HttpNotFound());
            }



            var dbo_auditsRow = db.dbo_audits.Find(id);

            db.dbo_audits.Remove(dbo_auditsRow);

            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Ejemplo n.º 3
0
        public ActionResult Delete(int?id)

        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(System.Net.HttpStatusCode.BadRequest));
            }
            var db = new qhsedbEntities();
            hazard_sub_emp_exp hazard_sub_emp_exp = db.hazard_sub_emp_exp.Find(id);

            if (hazard_sub_emp_exp == null)
            {
                return(HttpNotFound());
            }



            var hazard_sub_emp_expRow = db.hazard_sub_emp_exp.Find(id);

            db.hazard_sub_emp_exp.Remove(hazard_sub_emp_expRow);

            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Ejemplo n.º 4
0
        public ActionResult Delete(int?id)

        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(System.Net.HttpStatusCode.BadRequest));
            }
            var db = new qhsedbEntities();
            legal_other_requierments legal_other_requierments = db.legal_other_requierments.Find(id);

            if (legal_other_requierments == null)
            {
                return(HttpNotFound());
            }



            var legal_other_requiermentsRow = db.legal_other_requierments.Find(id);

            db.legal_other_requierments.Remove(legal_other_requiermentsRow);

            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Ejemplo n.º 5
0
        public ActionResult Delete(int?id)

        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            var             db = new qhsedbEntities();
            ohs_comm_agenda ohs_comm_agenda = db.ohs_comm_agenda.Find(id);

            if (ohs_comm_agenda == null)
            {
                return(HttpNotFound());
            }



            var OhsAgendaRow = db.ohs_comm_agenda.Find(id);

            db.ohs_comm_agenda.Remove(OhsAgendaRow);

            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Ejemplo n.º 6
0
        public ActionResult Delete(int?id)

        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            var db = new qhsedbEntities();
            general_information general_information = db.general_information.Find(id);

            if (general_information == null)
            {
                return(HttpNotFound());
            }



            var general_informationRow = db.general_information.Find(id);

            db.general_information.Remove(general_informationRow);

            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Ejemplo n.º 7
0
        public ActionResult Delete(int?id)

        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            var db = new qhsedbEntities();
            detailed_incident_invest_rep detailed_incident_invest_rep = db.detailed_incident_invest_rep.Find(id);

            if (detailed_incident_invest_rep == null)
            {
                return(HttpNotFound());
            }



            var detailed_incident_invest_repRow = db.detailed_incident_invest_rep.Find(id);

            db.detailed_incident_invest_rep.Remove(detailed_incident_invest_repRow);

            db.SaveChanges();
            return(RedirectToAction("Index"));
        }