public async void GetBalance() { TransactionApiRequest request = new TransactionApiRequest(); await request.GetBalanceRequest(); Balance = Settings.Balance.ToString("C", new CultureInfo("en-GB")); }
public async void GetTransactions() { TransactionApiRequest request = new TransactionApiRequest(); List <Transaction> transactions = await request.GetTransactions(); if (transactions == null) { //This stops the app rendering the list view when there is no data in the collection Transactions = new ObservableCollection <Transaction>(new List <Transaction>()); return; } transactions.Reverse(); Transactions = new ObservableCollection <Transaction>(transactions); }