public HttpResponseMessage ClearCacheAllKeys() { try { CacheHelper cache = new CacheHelper(); string json = (string)cache.ClearCacheAllKeys(); if (json == "OK") { return(Request.CreateResponse(HttpStatusCode.OK, "Cache Cleared Successfully!!!")); } else { return(Request.CreateResponse(HttpStatusCode.OK, CommonResult.GetErrorResult("Failed to Clear Cache!!!!"))); } } catch (Exception ex) { return(Request.CreateResponse(HttpStatusCode.OK, CommonResult.GetErrorResult(ex.Message))); } }