コード例 #1
0
        public ActionResult Signup(User user, string password)
        {
            var db = new AuthDb(Properties.Settings.Default.ConStr);

            db.AddUser(user, password);
            return(RedirectToAction("Login"));
        }
コード例 #2
0
        public IActionResult Signup(User user, string password)
        {
            var db = new AuthDb(_connectionString);

            db.AddUser(user, password);
            return(RedirectToAction("Index", "Home"));
        }