Пример #1
0
 protected override Task Initialize()
 {
     SelectedAccount = new AccountViewModel();
     return(Task.CompletedTask);
 }
Пример #2
0
        /// <summary>
        ///     Calculates the sum of all accounts at the current moment.
        /// </summary>
        /// <returns>Sum of the balance of all accounts.</returns>
        protected override async Task <double> CalculateTotalBalance()
        {
            AccountViewModel account = await crudServices.ReadSingleAsync <AccountViewModel>(accountId);

            return(account.CurrentBalance);
        }