I know in Asp.net MVC controller, we can access the application like this:
HttpContext.Application["AppVar"]
But in the Web api controller, there is no HttpContext, how to access the application Object then?
the http context still exists and it's a core component of ASP.Net. how you gain access to it is the issue at hand.
HttpContext.Current.Application["AppVar"].