@code { [CascadingParameter] BlazoredModalInstance BlazoredModal { get; set; } = default!; private async Task Close() => await BlazoredModal.CloseAsync(ModalResult.Ok(true)); private async Task ConfirmDelete() => await BlazoredModal.CloseAsync(ModalResult.Ok(true)); private async Task Cancel() => await BlazoredModal.CloseAsync(ModalResult.Cancel()); }