public ActionResult UpdateProfile(User_UpdateProfileCommand cmd) { if (!ModelState.IsValid) { return(RespondTo(request => { request[AcceptsFormatType.Html] = () => View("Step2", cmd); request[AcceptsFormatType.Ajax] = () => PartialView("Step2", cmd); })); } Send(cmd); return(RedirectToAction("Step3")); }
public ActionResult UpdateProfile(User_UpdateProfileCommand cmd) { if (!ModelState.IsValid) { return RespondTo(request => { request[AcceptsFormatType.Html] = () => View("Step2", cmd); request[AcceptsFormatType.Ajax] = () => PartialView("Step2", cmd); }); } Send(cmd); return RedirectToAction("Step3"); }