using Blazorise; using Gremlin_BlazorServer.Data.EntityClasses; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Authorization; namespace Gremlin_BlazorServer.Pages; public partial class Debug { [CascadingParameter] private Task? AuthenticationStateTask { get; set; } private Task OnInstantiateModal() { // Random random = new(); // long newValue = random.NextInt64(100); // return ModalService.Show( // "Counter", // parameter => parameter.Add(x => x.Value, newValue) // ); CustomDescription customDescription = new(); List suggestions = new(); return ModalService.Show(builder => { builder.Add(parameter => parameter.CustomDescription, customDescription); builder.Add(parameter => parameter.Suggestions, suggestions); }); } }