Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        public async Task OnGetAsync(Guid person)
        {
            Person = await personService.GetPersonAsync(person);

            MonthlyIncome = FinanceService.FormatToCurrencyString(Person.Income);
        }