protected override Task Initialize() { SelectedAccount = new AccountViewModel(); return(Task.CompletedTask); }
/// <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); }