@using Model.Entity @using Model.Entity.Data @inject IEntityDialogService entityDialogService @if (EntityId == null) {
Add a entity
} else { } @code { [Parameter] public string EntityId { get; set; } = default!; private EntityModel Entity => DATA.Get()[EntityId]; void EntityLabelClicked() { entityDialogService.AddDialog(EntityId); } }