User.Identity.Name is returning UserName instead of Name
问题 I want to display Name of a user instead of UserName in navbar that is in _LoginPartial Currently I'm using User.Identity.GetUserName() for userName but now I want to display Name of the current user. _LoginPartial is called by the Startup.Auth.cs so I can't run the query on the backend and get the Name of my user so I can only use built-in functions which can run by razor in view. I have tried all of them but they all are giving me username instead of name of the user. <small>@System