Пример #1
0
        public IActionResult SignUp(User user)
        {
            UserRepos repository = new UserRepos(_connectionString);

            repository.AddUser(user);
            return(Redirect("/user/logIn"));
        }
Пример #2
0
 public IActionResult SignUp(Registration sr)
 {
     if (ModelState.IsValid)
     {
         UserRepos.AddUser(sr);
         return(View("Welcome", sr));
     }
     else
     {
         return(View());
     }
 }