Пример #1
0
 public static void RemoveFormViewComponentResult(this ICache cache, string code, string cultureCode)
 {
     cache.Remove(ICacheExtensions.GetFormViewComponentResultKey(code, cultureCode));
 }
Пример #2
0
 public static IViewComponentResult GetFormViewComponentResultWithDefaultValue(this ICache cache, string code, Func <IViewComponentResult> defaultValueFunc)
 {
     return(cache.GetWithDefaultValue(
                ICacheExtensions.GetFormViewComponentResultKey(code), defaultValueFunc
                ));
 }