.net core check if user is logged in
Code Example - .net core check if user is logged in
@if(!User.Identity.IsAuthenticated)
{
...
}
@if(!User.Identity.IsAuthenticated)
{
...
}