I made an action filter and set it up globally in my .net core 2.2 application. This action filter is meant to get a value and pass it into a ViewBag which is used on the La