public async Task OnGetAsync() { People = await personService.GetPeopleAsync(); decimal monthlyIncome = FinanceService.GetTotalMonthlyIncome(People); decimal yearlyIncome = FinanceService.GetTotalYearlyIncome(People); TotalMonthlyIncome = FinanceService.FormatToCurrencyString(monthlyIncome); TotalYearlyIncome = FinanceService.FormatToCurrencyString(yearlyIncome); }
public async Task OnGetAsync(Guid person) { Person = await personService.GetPersonAsync(person); MonthlyIncome = FinanceService.FormatToCurrencyString(Person.Income); }