コード例 #1
0
        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);
            }
        }
コード例 #2
0
        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);
            }
        }
コード例 #3
0
 public void InitRegisterModel(RegisterIndexModel index)
 {
     this.Email = index.Email;
 }
コード例 #4
0
 // GET: Register
 public ActionResult Index()
 {
     RegisterIndexModel model = new RegisterIndexModel();
     return View(model);
 }
コード例 #5
0
        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);
            }
        }