public ActionResult RegisterUser(RegisterIndexModel model) { RegisterModel userModel = new RegisterModel(); userModel.InitRegisterModel(model); if (model.Email == null) { return RedirectToAction("Index", "Register", model); } else { return View(userModel); } }
public ActionResult Index(RegisterIndexModel model) { if (model.Email == null) { return View(model); } UserInfo user = this.IUserInfoDataProvider.GetUserListByEmail(model.Email); if (user == null) { return RedirectToAction("RegisterUser", "Register", model); } else { model.IsExist = true; return View(model); } }
public void InitRegisterModel(RegisterIndexModel index) { this.Email = index.Email; }
// GET: Register public ActionResult Index() { RegisterIndexModel model = new RegisterIndexModel(); return View(model); }
public ActionResult RegisterUser(RegisterIndexModel indexModel) { RegisterModel userModel = new RegisterModel(); userModel.InitRegisterModel(indexModel); LoginAndRegisterModel model = new LoginAndRegisterModel(); model.LoginIndexModel = new LoginIndexModel(); model.RegisterIndexModel = indexModel; model.RegisterModel = userModel; if (indexModel.Email == null) { return RedirectToAction("Register", "LoginAndRegister", model); } else { return View(model); } }