public ActionResult Edit([Bind(Include = "id,naam,beschrijving,datum")] evenement evenement) { if (ModelState.IsValid) { db.Entry(evenement).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(evenement)); }
public ActionResult Edit([Bind(Include = "Id,naam,voornaam,adres,gemeente,type,content,date")] Vraag vraag) { if (ModelState.IsValid) { db.Entry(vraag).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(vraag)); }