I am running one Asp.Net Core MVC project 3.1 where i have one layout.cshtml page.
Here i used few filters to use across all the pages.
To load filters and to load