In this part, we would cover User profile. We’ll be able to display the login user on the header section and provide link to logout and profile.
However, before we continue on this section, I would like to show you how to display Name in dropdown list instead of Id. For instance, if you go to New Patient, you will notice the in the Country select list, country ids are displayed rather than names.
To fix this:
Step 1 – Open the PatientController.cs file and locate the code below:

Step 2 – Simply change the CountryId to Name in the two places circled
Step 3 – In the Create.cshtml page for Patient, change ViewBag.CountryId to ViewBag.Name in the dropdown list section.