public ActionResult DeleteConfirmed(int id) { Verbotax verbotax = db.Verbotax.Find(id); db.Verbotax.Remove(verbotax); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "id_verbo,nivel_tax,verbos")] Verbotax verbotax) { if (ModelState.IsValid) { db.Entry(verbotax).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.nivel_tax = new SelectList(db.Taxonomia, "nivel_tax", "categoria", verbotax.nivel_tax); return(View(verbotax)); }
// GET: Verbotax/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Verbotax verbotax = db.Verbotax.Find(id); if (verbotax == null) { return(HttpNotFound()); } return(View(verbotax)); }
// GET: Verbotax/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Verbotax verbotax = db.Verbotax.Find(id); if (verbotax == null) { return(HttpNotFound()); } ViewBag.nivel_tax = new SelectList(db.Taxonomia, "nivel_tax", "categoria", verbotax.nivel_tax); return(View(verbotax)); }