public ActionResult destroyCache([DataSourceRequest] DataSourceRequest request, Core.Enums.CacheCategory CacheCategory) { Infras.DataCache.SecondCache.DestroyCacheOfCategory(CacheCategory); AddMessage(Core.Enums.status.Success); return(Json(new[] { CacheCategory }.ToDataSourceResult(request, ModelState), JsonRequestBehavior.AllowGet)); }
public ActionResult read_cache([DataSourceRequest] DataSourceRequest request, Core.Enums.CacheCategory cacheCategory) { var data = one.Infras.DataCache.SecondCache.GetSecondCache(cacheCategory); return(Json(data.ToDataSourceResult(request), JsonRequestBehavior.AllowGet)); }