On my _Layout.cshtml
page of my site, I just want to display the current user's first and last name. This is stored in the AspNetUsers
database table in the Name
column.
Anyone know how I can get this data?
I looked in the UserManager
class, and I see methods like GetEmail
and GetPhone
, but nothing to get Name.