public async Task <IActionResult> EditCacheEndPoint(CacheEndpointParam param) { await ServiceLocator.GetService <IServiceCacheProvider>().SetCacheEndpointByEndpoint(param.CacheId, param.Endpoint, param.CacheEndpoint); return(Json(ServiceResult.Create(true))); }
public async Task <IActionResult> EditCacheEndPoint([FromServices] IServiceCacheProvider serviceCacheProvider, CacheEndpointParam param) { await serviceCacheProvider.SetCacheEndpointByEndpoint(param.CacheId, param.Endpoint, param.CacheEndpoint); return(Json(ServiceResult.Create(true))); }