예제 #1
0
 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));
 }
예제 #2
0
 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));
 }