using BLAIzor.Models; using Microsoft.AspNetCore.Components; namespace BLAIzor.Components.Partials { public class EditorUIComponentBase : ComponentBase { [Parameter] public Func OnContentUpdated { get; set; } [Parameter] public Func OnContentEditStarted { get; set; } protected async Task NotifyContentUpdatedAsync(T updatedObject) { if (OnContentUpdated != null) { await OnContentUpdated.Invoke(updatedObject); } } protected async Task NotifyContentEditStartedAsync(T updatedObject) { if (OnContentEditStarted != null) { await OnContentEditStarted.Invoke(updatedObject); } } } }