title: which is the best way to implement display username(from user table) and avatar(from the profile table) in all view pages [ASP.NET core]?
body: <p>I have a partial view _TopBar with used to display username, avatar. _TopBar is rendered when the user logged.</p>
  <p>How to avoid repeating the same code in my MVC project?</p>