using FoodsharingSiegen.Contracts.Entity; using FoodsharingSiegen.Server.Data.Service; using Microsoft.AspNetCore.Components; namespace FoodsharingSiegen.Server.Pages { /// /// The audit view class (a. beging, 23.05.2022) /// public partial class AuditView { #region Dependencies (Injected) /// /// Gets or sets the value of the audit service (ab) /// [Inject] public AuditService? AuditService { get; set; } #endregion #region Public Properties /// /// Gets or sets the value of the audits (ab) /// private List? Audits { get; set; } #endregion #region Override OnInitializedAsync /// /// Ons the initialized (a. beging, 23.05.2022) /// protected override async Task OnInitializedAsync() { var loadR = await AuditService?.Load(100)!; if (loadR.Success) Audits = loadR.Data; await base.OnInitializedAsync(); } #endregion } }