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); }
public int GetAllCurrenciesAmount() { var amount = WalletFactory.GetAllCurrencies().Count; return(amount); }