/// <summary> /// Gets route values. /// </summary> /// <returns>Route value dictionary.</returns> private IDictionary <string, object> GetRouteValues() { IDictionary <string, object> routeValues = new Dictionary <string, object>(); RouteValueDictionary rvd = _webHelperService.GetRouteValueDictionary(); foreach (KeyValuePair <string, object> kvp in rvd) { routeValues.Add(kvp.Key, kvp.Value); } return(routeValues); }