title: ViewBag inside of Filters of ASP.NET Core
body: <p>Based upon this post <a href="https://stackoverflow.com/questions/23381295/make-a-global-viewbag">Make a Global ViewBag</a>, I'm trying to implement the following in ASP.NET Core 2.2. I realize the original post was for MVC 3.</p>
  
  <pre><code>public class CompanyFilter : ActionFilterAttribute
  {
      public override void OnActionExecuting(ActionExecutingContext filterContext)
      {
          filterContext.Controller.ViewBag.Company = "MyCompany";
      }
  }
  </code></pre>
  
  <p>I'm unable to find in what namespace filterContext.Controller.ViewBag would be defined. Is this still available in ASP.NET Core?</p>