public async ValueTask <string?> GetValuesAsync( [Service] IChangeLogService changeLogService, [Parent] ApplicationPartComponent parent, int?version, CancellationToken cancellationToken) { if (version is null) { return(parent.Values); } ChangeLog?changelog = await changeLogService .GetByApplicationPartComponentIdAndVersion(parent.Id, version.Value, cancellationToken); return(changelog switch { { Change : ApplicationPartComponentValuesChange { Values : { } v } } => v,