public async Task UpdateAsync(IndexSettings indexSettings) { IndexSettings currentIndexSettings = await GetByIndexAsync(indexSettings.Name); if (currentIndexSettings == null) { throw new EntityNotFoundException(); } await ValidateAsync(indexSettings); currentIndexSettings.Update(indexSettings); await _indexSettingsRepository.UpdateAsync(currentIndexSettings); _cache.Set(currentIndexSettings); _log.InfoWithDetails("Index settings updated", currentIndexSettings); }