private void Save(Guid userId, WalletStatus walletStatus, Money money) { _walletStorage.UpdateWallet(userId, new WalletStatus( walletStatus.Moneys .Where(x => x.Currency != money.Currency) .Union(new[] { money }) .ToArray())); }
private void Save(Guid userId, WalletStatus walletStatus, Money money) { _walletStorage.UpdateWallet(userId, new WalletStatus( walletStatus.Moneys .Where(x => x.Currency != money.Currency) .Union(new[] { money }) .ToArray())); }