Example #1
0
 public JsonResult CacheUpdate()
 {
     try
     {
         using (var client = new ConfigClient())
         {
             var res = client.RefreshShareSupervisionCache();
             res.ThrowIfException(true);
             if (res.Success && res.Result)
             {
                 return(Json(1));
             }
             else
             {
                 return(Json(-1));
             }
         }
     }
     catch (Exception exp)
     {
         Component.Framework.Extension.WebLog.LogException(exp);
         return(Json(-1));
     }
 }