I am looking to display the current username logged in the header in the layout file. What is the best way to accomplish this? I am not currently passing any model into the layout file. Also, if noone is logged in, I don’t want to display a username obviously
Share
It’s on the
_LogOnPartial.cshtmlview on the default template!