예제 #1
0
 public ActionResult Edit([Bind(Include = "Id,Title,Content,Image,CreationDate,Author")] Entry entry)
 {
     if (ModelState.IsValid)
     {
         db.Entry(entry).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(entry));
 }