public static IViewComponentResult GetCulturesViewComponentResultWithDefaultValue(this ICache cache, Func <IViewComponentResult> defaultValueFunc) { return(cache.GetWithDefaultValue( ICacheExtensions.GetCulturesViewComponentResultKey(), defaultValueFunc )); }
public static void RemoveCulturesViewComponentResult(this ICache cache, string code, string cultureCode) { cache.Remove(ICacheExtensions.GetCulturesViewComponentResultKey()); }
public static IViewComponentResult GetCulturesViewComponentResultWithDefaultValue(this ICache cache, string additionalCssClass, Func <IViewComponentResult> defaultValueFunc) { return(cache.GetWithDefaultValue( ICacheExtensions.GetCulturesViewComponentResultKey(additionalCssClass), defaultValueFunc )); }