@code { [Parameter] public string CodArtParent { get; set; } = ""; [Parameter] public EventCallback EC_Close { get; set; } [Parameter] public List? ListRecords { get; set; } = null; protected override void OnParametersSet() { // base.OnParametersSet(); totalKitCount = ListRecords != null ? ListRecords.Count() : 0; } private int totalKitCount = 0; protected async void ReqClose() { await EC_Close.InvokeAsync(true); } }