@page "/pouvoir-list" @using DataLayer.Interfaces @using Domain.XML_Model @attribute [StreamRendering(true)]

Pouvoir

@if (Pouvoirs == null) {

Loading...

} else { @foreach (var pouvoir in Pouvoirs) { }
Nom Discipline Seuil Action Opposé Portée Prolongeable Description
@pouvoir.Nom @pouvoir.Discipline @pouvoir.Seuil @pouvoir.Action @pouvoir.Opposé @pouvoir.Portée @pouvoir.Prolongeable @pouvoir.Description
}
@code { private List Pouvoirs { get; set; } [Inject] public IAbstractRepository _pouvoirRepository { get; set; } protected override async Task OnInitializedAsync() { // Load the pouvoirs data here Pouvoirs = await LoadPouvoirsAsync(); } private async Task> LoadPouvoirsAsync() { // Implement the logic to load pouvoirs data var powers = await _pouvoirRepository.GetAll(); return powers.OrderBy(p => p.Nom).ToList(); } }