コード例 #1
0
 public ActionResult Edit([Bind(Include = "Id,FirstName,LastName,Email,IsSubscribed")] SubscriberInfo subscriberInfo)
 {
     if (ModelState.IsValid)
     {
         db.Entry(subscriberInfo).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(subscriberInfo));
 }