コード例 #1
0
 public ActionResult Edit(int id, Customer customer)
 {
     try
     {
         // TODO: Add update logic here
         db.Edit(customer);
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View(customer));
     }
 }