コード例 #1
0
 public ActionResult GetPartialAddress(CustomerProfileModel model)
 {
     if (ModelState.IsValid)
     {
         profiles.Edit(model);
     }
     return(RedirectToAction("MyPage"));
 }
コード例 #2
0
 public ActionResult Shipping(CustomerProfileModel model)
 {
     if (ModelState.IsValid)
     {
         // Save the profile for next time.
         customerProfiles.Edit(model);
         // Return Payment view
         return(RedirectToAction("Payment"));
     }
     return(View(model));
 }