public ActionResult DeleteConfirmed(long id)
        {
            centro_formacion centro_formacion = db.centro_formacion.Find(id);

            db.centro_formacion.Remove(centro_formacion);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "ID_Centro,Nombre_Centro,Direccion_Centro,Telefono_Centro,Estado_Centro,FechaDeCreacion_Centro,FechaDeInactivacion_Centro")] centro_formacion centro_formacion)
 {
     if (ModelState.IsValid)
     {
         db.Entry(centro_formacion).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(centro_formacion));
 }
        // GET: centro_formacion/Delete/5
        public ActionResult Delete(long?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            centro_formacion centro_formacion = db.centro_formacion.Find(id);

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