@page "/home" @using TIAMSharedUI.Shared @using TIAMWebApp.Shared.Application.Models; @using TIAMWebApp.Shared.Application.Interfaces; @using TIAMSharedUI.Shared.Components.BaseComponents @using TIAMWebApp.Shared.Application.Services @inherits BasePageComponent @* @layout AdminLayout *@ @inject IPopulationStructureDataProvider DataProvider @inject ISupplierService SupplierService @inject IUserDataService UserDataService @inject ExchangeRateService ExchangeRateService Sysadmin

Welcome

Have a nice day!

Exchange Rate

@if (exchangeRate == null) {

Loading...

} else {

Current EUR to HUF exchange rate: @exchangeRate.EURtoHUF

} @*
Panel title

Subtitle

Some info

Budapest, Dózsa György út 35, 1146

  • PLACED
  • WAITING FOR PICK UP
  • FINISHED

Some conclusion

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