Exemple #1
0
    public async Task <ISchema?> GetSchemaByIdAsync(
        Guid id,
        CancellationToken cancellationToken = default)
    {
        Component?component = await GetByIdAsync(id, cancellationToken);

        if (component?.Schema is null)
        {
            return(null);
        }

        return(_schemaService.CreateSchema(component.Schema));
    }