public ActionResult DeleteConfirmed(string id) { Estudiante_WLDM estudiante_WLDM = db.Estudiante_WLDM.Find(id); db.Estudiante_WLDM.Remove(estudiante_WLDM); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "Codigo,Nombre,Id,Telefono,Edad")] Estudiante_WLDM estudiante_WLDM) { if (ModelState.IsValid) { db.Entry(estudiante_WLDM).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(estudiante_WLDM)); }
public ActionResult Create([Bind(Include = "Codigo,Nombre,Id,Telefono,Edad")] Estudiante_WLDM estudiante_WLDM) { if (ModelState.IsValid) { db.Estudiante_WLDM.Add(estudiante_WLDM); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(estudiante_WLDM)); }
// GET: Estudiante_WLDM/Delete/5 public ActionResult Delete(string id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Estudiante_WLDM estudiante_WLDM = db.Estudiante_WLDM.Find(id); if (estudiante_WLDM == null) { return(HttpNotFound()); } return(View(estudiante_WLDM)); }