App.Web.HttpContextExtensions.GetRouteValue C# (CSharp) Method

GetRouteValue() static private method

static private GetRouteValue ( this context, string key ) : string
context this
key string
return string
        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;
        }
HttpContextExtensions