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

            return(ResultList.Create(contents.Total, transformed));
        }