public ActionResult DeleteConfirmed(string cedula, string siglaExam) { Aplica_Transacciones aplica_Transacciones = db.Aplica_Transacciones.Find(cedula, siglaExam); db.Aplica_Transacciones.Remove(aplica_Transacciones); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "Cedula,SiglaExam,Descripcion")] Aplica_Transacciones aplica_Transacciones) { if (ModelState.IsValid) { db.Entry(aplica_Transacciones).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.Cedula = new SelectList(db.Profesor_Transacciones, "Cedula", "Cedula", aplica_Transacciones.Cedula); ViewBag.SiglaExam = new SelectList(db.Examen_Transacciones, "SiglaExam", "SiglaExam", aplica_Transacciones.SiglaExam); return(View(aplica_Transacciones)); }
// GET: Aplica_Transacciones/Details/5 public ActionResult Details(string cedula, string siglaExam) { if (cedula == null || siglaExam == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Aplica_Transacciones aplica_Transacciones = db.Aplica_Transacciones.Find(cedula, siglaExam); if (aplica_Transacciones == null) { return(HttpNotFound()); } return(View(aplica_Transacciones)); }
// GET: Aplica_Transacciones/Edit/5 public ActionResult Edit(string cedula, string siglaExam) { if (cedula == null || siglaExam == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Aplica_Transacciones aplica_Transacciones = db.Aplica_Transacciones.Find(cedula, siglaExam); if (aplica_Transacciones == null) { return(HttpNotFound()); } ViewBag.Cedula = new SelectList(db.Profesor_Transacciones, "Cedula", "Cedula", aplica_Transacciones.Cedula); ViewBag.SiglaExam = new SelectList(db.Examen_Transacciones, "SiglaExam", "SiglaExam", aplica_Transacciones.SiglaExam); return(View(aplica_Transacciones)); }