Edit: David is right of course.
Just check if User or HttpContext.User.Identity.IsAuthenticated is true or not.
@if(!User.Identity.IsAuthenticated)
{
...
}
Edit: David is right of course.
Just check if User or HttpContext.User.Identity.IsAuthenticated is true or not.
@if(!User.Identity.IsAuthenticated)
{
...
}