public ActionResult Edit([Bind(Include = "SednicaID,Datum,VrstaSednice,Ucionica,Zapisnik,Poziv")] Sednice sednice) { if (ModelState.IsValid) { db.Entry(sednice).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(sednice)); }
public ActionResult Edit(Clanovi clanovi) { if (ModelState.IsValid) { db.Entry(clanovi).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(clanovi)); }
public ActionResult Edit([Bind(Include = "ClanID,Ime,Prezime,ImePrezime,Email,Status,KorisnickoIme,Lozinka")] Clanovi clanovi) { if (ModelState.IsValid) { db.Entry(clanovi).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(clanovi)); }
public ActionResult Edit([Bind(Include = "ClanID,SednicaID,Prisutan,Opravdano")] Prisustvo prisustvo) { if (ModelState.IsValid) { db.Entry(prisustvo).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.ClanID = new SelectList(db.Clanovi, "ClanID", "Ime", prisustvo.ClanID); ViewBag.SednicaID = new SelectList(db.Sednice, "SednicaID", "VrstaSednice", prisustvo.SednicaID); return(View(prisustvo)); }