1
est une solution pour marquer cette méthode commeasp.net mvc IsAuthenticated attribut
[IsAuthenticated(true)]
public ActionResult Profile()
{
return View();
}
pas appeler if (request.IsAuthenticated)
?