@foreach (var c in Comments) {
@(c.Author ?? "Inconnu"): @c.Content
}
@code { [Parameter] public InspectionRegister Register { get; set; } List Comments { get; } = new(); string NewCommentText { get; set; } = ""; protected async override Task OnInitializedAsync() { await base.OnInitializedAsync(); Comments.Add(new() { Content = "test comment" }); } }