コード例 #1
0
        public async Task <IActionResult> Signout()
        {
            await _signInManager.SignOutAsync();

            _logger.LogInformation("User logged out.");
            return(RedirectToAction(nameof(HomeController.Index), "Home"));
        }
コード例 #2
0
        public async Task <IActionResult> Logout()
        {
            await signInManager.SignOutAsync();

            return(RedirectToAction("login", "account"));
        }