public ActionResult Register(RegisterVM model) { try { if (ModelState.IsValid) { RegistrationStatus curRegStatus = _account.ProcessRegistrationRequest(model.Email.Trim(), model.Password.Trim()); if (curRegStatus == RegistrationStatus.UserMustLogIn) { ModelState.AddModelError("", @"You are already registered with us. Please login."); } else { // return RedirectToAction("Index", "Home"); return View("RegistrationConfirmation"); } } } catch (ApplicationException appEx) { ModelState.AddModelError("", appEx.Message); } catch (Exception ex) { ModelState.AddModelError("", ex.Message); } return View(); }
public ActionResult Confirm(RegisterVM model) { return View(model); }