I have this code in global.asax
protected void Application_Error(object sender, EventArgs e)
{
// ...
var routeData = new RouteData();
routeData.Values.Add("controller", "Home");
routeData.Values.Add("action", "Error");
IController controller = new Controllers.HomeController();
controller.Execute(new RequestContext(new HttpContextWrapper(Context), routeData));
}
how can I add parameter to Action method / RouteData ? I would like to show exception message to the user.
I have figure it out,
and in action just catch that parameter