public async Task Delete(string assetPairId) { await _assetPairsRepository.DeleteAsync(assetPairId); await _eventSender.SendSettingsChangedEvent($"{Request.Path}", SettingsChangedSourceType.AssetPair, assetPairId); await _cqrsMessageSender.SendAssetPairChangedEvent(new AssetPairChangedEvent { OperationId = Guid.NewGuid().ToString("N"), AssetPair = new AssetPairContract { Id = assetPairId }, }); }
public async Task<IAssetPair> DeleteAssetPair(string assetPairId) { var pair = await _assetPairsRepository.DeleteAsync(assetPairId); InitAssetPairs(); return pair; }