public ActionResult Edit() { var viewModel = new EditViewModel(); throw new InvalidAsynchronousStateException(); //return PartialView("_EditForm", viewModel); }
public ActionResult EditForm(EditViewModel viewModel) { if (ModelState.IsValid) { try { TempData["RegisterWithSuccess"] = true; return CurrentUmbracoPage(); } catch (Exception exception) { ModelState.AddModelError("Business", exception); } } return CurrentUmbracoPage(); }