public Task ThrowIfSchemaNotExistsAsync(QueryContext context, string schemaIdOrName) { return(GetSchemaAsync(context, schemaIdOrName)); }
private IContentEntity Transform(QueryContext context, ISchemaEntity schema, IContentEntity content) { return(TransformCore(context, schema, Enumerable.Repeat(content, 1)).FirstOrDefault()); }
private Task <IContentEntity> FindContentAsync(QueryContext context, Guid id, Status[] status, ISchemaEntity schema) { return(contentRepository.FindContentAsync(context.App, schema, status, id)); }
private IResultList <IContentEntity> Transform(QueryContext context, ISchemaEntity schema, IResultList <IContentEntity> contents) { var transformed = TransformCore(context, schema, contents); return(ResultList.Create(contents.Total, transformed)); }