public ActionResult EditProfile(Customer customer) { if (ModelState.IsValid) { SqlUser.AddModyfyAddress(customer, User.Identity.Name); } else { return RedirectToAction("EditProfile", "User"); } return RedirectToAction("Profile", "User"); }
public ActionResult EditProfile(Customer customer) { if (ModelState.IsValid) { SqlUser.AddModyfyAddress(customer, User.Identity.Name); } else { return RedirectToAction("EditProfile", "User"); } return RedirectToAction("Profile", "User"); }