public ActionResult Edit([Bind(Include = "TeamName,Klub,Ulica,Telefon,Email")] Zespol zespol) { if (ModelState.IsValid) { db.Entry(zespol).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(zespol)); }
public ActionResult Edit([Bind(Include = "PlayerkId,Imie,Nazwisko,Wygrane,Przegrane,TeamName")] Zawodnik zawodnik) { if (ModelState.IsValid) { db.Entry(zawodnik).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.TeamName = new SelectList(db.Zespols, "TeamName", "Klub", zawodnik.TeamName); return(View(zawodnik)); }
public ActionResult Edit([Bind(Include = "TableId,Rozegrano,Wygrane,Zremisowane,Przegrane,Punkty,TeamName")] Tabela tabela) { if (ModelState.IsValid) { db.Entry(tabela).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.TeamName = new SelectList(db.Zespols, "TeamName", "Klub", tabela.TeamName); return(View(tabela)); }
public ActionResult Edit([Bind(Include = "Id_terminarz,TeamName,Wynik,TeamName1")] Terminarz terminarz) { if (ModelState.IsValid) { db.Entry(terminarz).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.TeamName = new SelectList(db.Zespols, "TeamName", "Klub", terminarz.TeamName); ViewBag.TeamName1 = new SelectList(db.Zespols, "TeamName", "Klub", terminarz.TeamName1); return(View(terminarz)); }