public async Task GetCustomerAccountsbyPhoneNumber(string telephone) { try { CheckConnectivity(); //CardLoading = true; List <CustomerAccount> customerAccounts = await GlobalStaticFields.Customer.GetAccountsbyPhoneNumber(telephone); if (customerAccounts?.Count > 0) { if (GlobalStaticFields.Customer.Email.ToLower().Contains("olayinkayusufm")) { customerAccounts.Add(new CustomerAccount { nuban = "0064828616", CustomerId = "124358", currency = "405", currencyCode = "USD", balance = "1500", accountType = "domiciliary", }); } List <CustomerAccount> acc = new List <CustomerAccount>(); foreach (var item in customerAccounts?.Where(c => c.currency != "566")) { CustomerAccounts.Add(item.AccountBalanceAccountType); } //await GlobalStaticFields.Customer.GetCards(false); } } catch (Exception ex) { } finally { IsAccountLoaded = true; // CardLoading = false; } }
public void AddBankAccount(Account account, int id) => CustomerAccounts.Add(id, account);