internal static string GetRouteValue(this HttpContextBase context, string key)
{
var route = context.Items[RouteKey] as RouteValueDictionary;
if (route != null)
{
var routeValue = route[key];
return routeValue != null ? routeValue.ToString() : null;
}
return null;
}