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