@if (SignInManager.IsSignedIn(User)) { } else { } if(condition == true) { //show logged in partial }