I have some dummy data inside my helper class. I want to on every mvc4 application startup to call this static method which would generate necessary data.
so I was thinking to store that data in variable inside global.asax and use that variable from controllers
public class MvcApplication: ...
{
protected void Application_Start()
{
var dummyData = DummyData.GetData();
}
}
But I cannot access this variable from my controller
public ActionResult Index()
{
var data = MvcApplication// I cannot access to my dummyData variable
}