Exemplo n.º 1
0
 public IActionResult Register(Credential response)
 {
     response.Password = HashDirectory.Hash(response.Password);
     repository.saveUser(response);
     return(RedirectToAction(nameof(Congratulations),
                             new { UserName = response.UserName, Password = response.Password, Admin = response.Admin }));
 }