@page "/authorities"
@using VisaApiClient
@inherits BlazorWebAssemblyVisaApiClient.Components.Base.VisaClientComponentBase
| Email | |
@foreach (var authority in authorities)
{
var path = $"authorities/{authority.Id}/{authority.Email}";
| @authority.Email |
|
}
@code {
private IEnumerable authorities = [];
protected override async Task OnInitializedAsync()
{
try
{
authorities = await Client.GetAuthorityAccountsAsync();
}
catch (Exception e)
{
ErrorHandler.Handle(e);
}
}
}