public ActionResult DeleteConfirmed(int id)
        {
            EleProteccion eleProteccion = db.Tb_EleProteccion.Find(id);

            db.Tb_EleProteccion.Remove(eleProteccion);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Epro_Id,Epro_Nom,Epro_Registro")] EleProteccion eleProteccion)
 {
     if (ModelState.IsValid)
     {
         db.Entry(eleProteccion).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(eleProteccion));
 }
        public ActionResult Create([Bind(Include = "Epro_Id,Epro_Nom,Epro_Registro")] EleProteccion eleProteccion)
        {
            if (ModelState.IsValid)
            {
                db.Tb_EleProteccion.Add(eleProteccion);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(eleProteccion));
        }
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            EleProteccion eleProteccion = db.Tb_EleProteccion.Find(id);

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