@Localizer["Dialog OK"] @code { [CascadingParameter] MudDialogInstance MudDialog { get; set; } = null!; [Parameter] public User User { get; set; } = new(); private string qrCode = string.Empty; protected override void OnInitialized() { base.OnInitialized(); qrCode = "BNTTCNID" + User.AccessCodes.First(); } private void Submit() { MudDialog.Close(DialogResult.Ok(true)); } }