The authentication related called in the label does C-sharp HD e-mail is already getting big, but is
going to get bigger when we also add the conditional based UI rendering.
So for that on this part, we're going to move all of that code into a part of you.
Individuals will let us go to the solution explorer and then in here, let us go to the views.
And then go to share an inside here, we are going to add a partial view, so then us just click on
the shared peek at and then of you.
Now this is going to be a reserve view.
So let us click add, then the name is going to be underscore identity and then click the add button.
So because we have the underscore pre-convention, that is a partial view.
So on you let us go to the does C-sharp each animal and then get all the code that is related to identity
something up there.
So here then control X to cut this code.
And that basically.
In here.
Not to render this partial view invalid, C-sharp HD time, you can just type at the web.
And then each HMO stopped render.
Barton, a singer, then passed as a parameter departure of your name, which in our cases underscore
identity.
Now another way of rendering the partial views is by using the partial tags on here partial.
And then the only parameter that you need to pass is the name bar meter.
And that is the underscore identity and then the C-sharp HMO.
So let us remove the first option and then just keep the partial option.
You can remove this part and then just closet tag in here, then save the changes and run this project
to see the result.
So you're not at the top in the navigation bar, you can see all the identity related buttons and all
these buttons were rendered by using a partial view.