@using BlazorAnimation @using TIAMSharedUI.Shared @using TIAMWebApp.Shared.Application.Models; @using TIAMWebApp.Shared.Application.Interfaces; @using TIAMWebApp.Shared.Application.Services @inject ExchangeRateService ExchangeRateService

Exchange Rate

@if (exchangeRate == null) {

Loading...

} else {

Current EUR to HUF exchange rate: @exchangeRate.EURtoHUF

}
@code { private ExchangeRate exchangeRate; protected override async Task OnInitializedAsync() { exchangeRate = await ExchangeRateService.GetExchangeRateAsync(); } private async Task SaveExchangeRate() { await ExchangeRateService.SetExchangeRateAsync(exchangeRate); } }