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));
 }