Thursday, September 27, 2012

How to check if user is logged in ASP.NET MVC

            if (!Request.IsAuthenticated)
            {
                return RedirectToAction("LogOn","Account");
            }

No comments:

Post a Comment