示例#1
0
        public async Task <IActionResult> Logout(string returnUrl = null)
        {
            await _authBL.Logout(returnUrl);

            if (returnUrl != null)
            {
                return(Redirect(returnUrl));
            }
            else
            {
                return(Redirect("/home/index"));
            }
        }
示例#2
0
        public async Task <IActionResult> Logout()
        {
            await _authBL.Logout(null);

            return(Ok(new EmptyResult()));
        }