Hi,
I have a partial sidebar and inside that I am showing common image if the user is not signed-in. I want to replace that image with the user profile image after logging-in. I am trying to work it out but no luck as the partial page is only html. is there a way to get the photo field from the users table (AspNetUsers)
SignInManager.IsSignedIn(User)
but not getting anything from the db table:
<span class="text-muted small">
@User.Identity?.Name
@UserManager.GetUserAsync(User)?.Result?.firstName
@UserManager.GetUserAsync(User)?.Result?.lastName
</span>
Identity.Name is ok but the next 2 lines are null. So basically for google users the table is phisically saved but when asking for data it is null!
please advise.