示例#1
0
        public List <string> GetAvailableWallets(int userId)
        {
            var Wallets = Where(p => p.OwnerId == userId);

            var currencies = WalletFactory.GetAllCurrencies();

            foreach (var Wallet in Wallets)
            {
                if (currencies.Contains(Wallet.CurrencyCode.ToLower()))
                {
                    var index = currencies.FindIndex(c => c == Wallet.CurrencyCode.ToLower());
                    currencies.RemoveAt(index);
                }
            }
            return(currencies);
        }
示例#2
0
        public int GetAllCurrenciesAmount()
        {
            var amount = WalletFactory.GetAllCurrencies().Count;

            return(amount);
        }