public ActionResult DeleteConfirmed(int id) { T_Absenzen t_Absenzen = db.T_Absenzen.Find(id); db.T_Absenzen.Remove(t_Absenzen); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "ID,Bezeichnung,VonDatum,BisDatum,FK_Spieler")] T_Absenzen t_Absenzen) { if (ModelState.IsValid) { db.Entry(t_Absenzen).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.FK_Spieler = new SelectList(db.T_Spieler, "ID", "Vorname", t_Absenzen.FK_Spieler); return(View(t_Absenzen)); }
// GET: Absenzen/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } T_Absenzen t_Absenzen = db.T_Absenzen.Find(id); if (t_Absenzen == null) { return(HttpNotFound()); } return(View(t_Absenzen)); }
// GET: Absenzen/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } T_Absenzen t_Absenzen = db.T_Absenzen.Find(id); if (t_Absenzen == null) { return(HttpNotFound()); } ViewBag.FK_Spieler = new SelectList(db.T_Spieler, "ID", "Vorname", t_Absenzen.FK_Spieler); return(View(t_Absenzen)); }