private static ResourceSet EvaluateSet(ControllerContext controllerContext, ResourceProvider provider, CultureInfo culture) { var route = controllerContext.RouteData; try { var set = route != null ? string.Format("{0}/{1}", route.GetRequiredString("controller"), route.GetRequiredString("action")) : string.Empty; return provider.GetResourceSet(culture, set); } catch (InvalidOperationException) // no route data { return provider.GetResourceSet(culture, string.Empty); } }