public ActionResult Signup(User user, string password) { var db = new AuthDb(Properties.Settings.Default.ConStr); db.AddUser(user, password); return(RedirectToAction("Login")); }
public IActionResult Signup(User user, string password) { var db = new AuthDb(_connectionString); db.AddUser(user, password); return(RedirectToAction("Index", "Home")); }