Edit a Category Cancel OK @code { [Parameter] public required ArtifactGroupingValidationModel Model { get; set; } [CascadingParameter] IMudDialogInstance MudDialog { get; set; } [Parameter] public bool IsUpdate { get; set; } = false; private void OnCancel(MouseEventArgs args) { MudDialog.Cancel(); } private void OnSubmit(MouseEventArgs args) { MudDialog.Close(DialogResult.Ok(Model)); } }