예제 #1
0
 public IActionResult CreateUser(string username, string password)
 {
     try
     {
         _userApiService.CreateUser(username, password);
         var userGuid = _userApiService.GetUserGuid(username, password);
         Set("userGuid", userGuid.ToString());
         Set("accountsPosition", 0.ToString());
         return(RedirectToAction(nameof(LoadOverview)));
     }
     catch (Exception e)
     {
         return(LoadLoginView(MessageHandler(e, "Unknown Error")));
     }
 }