Пример #1
0
        public IActionResult Logout()
        {
            if (!userLogin.HasLogin())
            {
                throw new Exception("access prohibited");
            }

            userLogin.Clear();
            return(Redirect("/"));
        }