views:

133

answers:

1

is any solution to mark method like this

[IsAuthenticated(true)]
        public ActionResult Profile()
        {

            return View();
        }

not call if (request.IsAuthenticated) ?

+2  A: 

AuthorizeAttribute:

[Authorize]
public ActionResult Profile()
{
    return View();
}
Darin Dimitrov