Exemplo n.º 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);
            }
        }
        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);
            }
        }