public ActionResult DeleteConfirmed(int id) { VerbosTarjeta verbosTarjeta = db.VerbosTarjeta.Find(id); db.VerbosTarjeta.Remove(verbosTarjeta); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "id_verbostarjeta,id_tarjetaRequerim,id_verbo")] VerbosTarjeta verbosTarjeta) { if (ModelState.IsValid) { db.Entry(verbosTarjeta).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.id_tarjetaRequerim = new SelectList(db.TarjetaRequerim, "id_tarjetaRequerim", "id_tarjetaRequerim", verbosTarjeta.id_tarjetaRequerim); ViewBag.id_verbo = new SelectList(db.Verbotax, "id_verbo", "verbos", verbosTarjeta.id_verbo); return(View(verbosTarjeta)); }
//visualizar los detalles de los atributos de la tabla VerbosTarjeta // GET: VerbosTarjeta/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } VerbosTarjeta verbosTarjeta = db.VerbosTarjeta.Find(id); if (verbosTarjeta == null) { return(HttpNotFound()); } return(View(verbosTarjeta)); }
//editar los valores de los atributos de la tabla VerbosTarjeta // GET: VerbosTarjeta/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } VerbosTarjeta verbosTarjeta = db.VerbosTarjeta.Find(id); if (verbosTarjeta == null) { return(HttpNotFound()); } ViewBag.id_tarjetaRequerim = new SelectList(db.TarjetaRequerim, "id_tarjetaRequerim", "id_tarjetaRequerim", verbosTarjeta.id_tarjetaRequerim); ViewBag.id_verbo = new SelectList(db.Verbotax, "id_verbo", "verbos", verbosTarjeta.id_verbo); return(View(verbosTarjeta)); }