is any solution to mark method like this
[IsAuthenticated(true)]
public ActionResult Profile()
{
return View();
}
not call if (request.IsAuthenticated)
?
is any solution to mark method like this
[IsAuthenticated(true)]
public ActionResult Profile()
{
return View();
}
not call if (request.IsAuthenticated)
?
[Authorize]
public ActionResult Profile()
{
return View();
}