How to show Hide login and logout link on the basis of user login or not in asp.net core?

Asp.net-core By Sagar Jaybhay

Show Hide Login Logout Link on basis of user login or not To perform login and logout we use the SignInManager class in asp .net core identity. We have to add a logout functionality button in the layout view so we need to insert SignInManager instance into _Layout view by using dependency injection. To insert instance in layout or razor view we use @inject Need to add this _Layout view. But we need to move using statement in a central file which is ViewImport file and we add this using…

Read More