public ActionResult DeleteConfirmed(decimal id) { GEOB_TIPO_CATALOGO geob_tipo_catalogo = db.GEOB_TIPO_CATALOGO.Find(id); db.GEOB_TIPO_CATALOGO.Remove(geob_tipo_catalogo); db.SaveChanges(); return RedirectToAction("Index"); }
public ActionResult Edit([Bind(Include="ID_TIPO_CATAL,TIPO_MAPA,FK_ID_ESTADO")] GEOB_TIPO_CATALOGO geob_tipo_catalogo) { if (ModelState.IsValid) { db.Entry(geob_tipo_catalogo).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("Index"); } ViewBag.FK_ID_ESTADO = new SelectList(db.GEOB_ESTADO, "ID_ESTADO", "ESTADO", geob_tipo_catalogo.FK_ID_ESTADO); return View(geob_tipo_catalogo); }
// GET: /Catalogo/Delete/5 public ActionResult Delete(decimal id) { if (id == null) { return new HttpStatusCodeResult(HttpStatusCode.BadRequest); } GEOB_TIPO_CATALOGO geob_tipo_catalogo = db.GEOB_TIPO_CATALOGO.Find(id); if (geob_tipo_catalogo == null) { return HttpNotFound(); } return View(geob_tipo_catalogo); }
// GET: /Catalogo/Edit/5 public ActionResult Edit(decimal id) { if (id == null) { return new HttpStatusCodeResult(HttpStatusCode.BadRequest); } GEOB_TIPO_CATALOGO geob_tipo_catalogo = db.GEOB_TIPO_CATALOGO.Find(id); if (geob_tipo_catalogo == null) { return HttpNotFound(); } ViewBag.FK_ID_ESTADO = new SelectList(db.GEOB_ESTADO, "ID_ESTADO", "ESTADO", geob_tipo_catalogo.FK_ID_ESTADO); return View(geob_tipo_catalogo); }