A set of technologies in .NET for building web applications and web services. Miscellaneous topics that do not fit into specific categories.
Hi @Jagjit Saini ,
What's your problem? I don't understand your requirement clearly. These two ways are all works for Authentication. So,I suggest you could use the first method.
Note: You need to add "[Authorize]" in your HomeController.
Best regards,
Yijing Sun
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.