Example #1
0
        public ActionResult DeleteConfirmed(decimal id)
        {
            GEOB_SERVICIOS_CATALOGO geob_servicios_catalogo = db.GEOB_SERVICIOS_CATALOGO.Find(id);

            db.GEOB_SERVICIOS_CATALOGO.Remove(geob_servicios_catalogo);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Example #2
0
 public ActionResult Edit([Bind(Include = "ID_SERVICIO,TITULO,DESCRIPCION,URL,TAGS,ZIP,FK_ID_TIPO_SRV,FK_ID_ESTADO,FK_ID_USUARIO,FECHA_REGISTRO")] GEOB_SERVICIOS_CATALOGO geob_servicios_catalogo)
 {
     if (ModelState.IsValid)
     {
         db.Entry(geob_servicios_catalogo).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.FK_ID_ESTADO   = new SelectList(db.GEOB_ESTADO, "ID_ESTADO", "ESTADO", geob_servicios_catalogo.FK_ID_ESTADO);
     ViewBag.FK_ID_TIPO_SRV = new SelectList(db.GEOB_TIPO_SRV, "ID_TIPO_SRV", "NOMBRE", geob_servicios_catalogo.FK_ID_TIPO_SRV);
     return(View(geob_servicios_catalogo));
 }
Example #3
0
        // GET: /Servicios/Details/5
        public ActionResult Details(decimal id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            GEOB_SERVICIOS_CATALOGO geob_servicios_catalogo = db.GEOB_SERVICIOS_CATALOGO.Find(id);

            if (geob_servicios_catalogo == null)
            {
                return(HttpNotFound());
            }
            return(View(geob_servicios_catalogo));
        }
Example #4
0
        // GET: /Servicios/Edit/5
        public ActionResult Edit(decimal id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            GEOB_SERVICIOS_CATALOGO geob_servicios_catalogo = db.GEOB_SERVICIOS_CATALOGO.Find(id);

            if (geob_servicios_catalogo == null)
            {
                return(HttpNotFound());
            }
            ViewBag.FK_ID_ESTADO   = new SelectList(db.GEOB_ESTADO, "ID_ESTADO", "ESTADO", geob_servicios_catalogo.FK_ID_ESTADO);
            ViewBag.FK_ID_TIPO_SRV = new SelectList(db.GEOB_TIPO_SRV, "ID_TIPO_SRV", "NOMBRE", geob_servicios_catalogo.FK_ID_TIPO_SRV);
            return(View(geob_servicios_catalogo));
        }