public static IHtmlString GlobalResource(this HtmlHelper helper, string resourceKeyName) { return(ResourceFileValueHelper.ResourceFileValueToHtml(helper, resourceKeyName)); }
public static IHtmlString Translate(this HtmlHelper helper, string resourceKey) { var translation = Translator.Translate(resourceKey); return(ResourceFileValueHelper.ResourceFileValueToHtml(helper, translation)); }
public static IHtmlString LocalResource(this HtmlHelper helper, WebViewPage page, string resourceKeyName) { var localResource = helper.ViewContext.HttpContext.GetLocalResourceObject(page.VirtualPath, resourceKeyName) as string; return(ResourceFileValueHelper.ResourceFileValueToHtml(helper, localResource)); }