private LanguageRouting GetLanguageRouting(IContent content) { var locale = content as ILocale; if (locale == null) { return(null); } return(_languageRoutingFactory.CreateLanguageRouting(locale)); }
private string GetLanguageRoutingParameter(IContent content) { var locale = content as ILocale; if (locale == null) { return(string.Empty); } var languageRouting = _languageRoutingFactory.CreateLanguageRouting(locale); return($"?language_routing={languageRouting.FieldSuffix}"); }