public async Task <IActionResult> GetCacheEndpoint([FromServices] IServiceCacheProvider serviceCacheProvider,
                                                           string cacheId)
        {
            var list = await serviceCacheProvider.GetCacheEndpointAsync(cacheId);

            var result = ServiceResult <IEnumerable <CacheEndpoint> > .Create(true, list);

            return(Json(result));
        }
        public async Task <IActionResult> EditCacheEndPoint([FromServices] IServiceCacheProvider serviceCacheProvider, string cacheId, string endpoint)
        {
            var model = await serviceCacheProvider.GetCacheEndpointAsync(cacheId, endpoint);

            return(View(model));
        }