public async Task <IActionResult> Register(UserDto userDto) { var registerResult = await _userApiService.RegisterAsync(userDto); if (registerResult.Success) { SuccessAlert("Kayıt başarılı."); return(RedirectToAction("Login")); } else { ErrorAlert(registerResult.Message); return(View(userDto)); } }