Esempio n. 1
0
        public async Task <ActionResult> Register(Models.UserViewModels.RegisterViewModel model)
        {
            if (!ModelState.IsValid)
            {
                return(View(model));
            }
            IBLL.IUserManager userManager = new UserManager();
            await userManager.Register(model.Email, model.Password);

            return(Content("注册成功"));
        }
        public async Task <ActionResult> Index(Models.UserViewModels.RegisterViewModel model)
        {
            if (ModelState.IsValid)
            {
                UserManager user = new UserManager();
                await user.Register(model.Email, model.Password);

                return(Content("<p>注册成功</p>"));
            }
            return(View(model));
        }