Exemple #1
0
        public static SchemasDto FromDomain(IList <ISchemaEntity> schemas, Resources resources)
        {
            var result = new SchemasDto
            {
                Items = schemas.Select(x => SchemaDto.FromDomain(x, resources)).ToArray()
            };

            return(result.CreateLinks(resources));
        }
Exemple #2
0
        public static SchemasDto FromSchemas(IList <ISchemaEntity> schemas, ApiController controller, string app)
        {
            var result = new SchemasDto
            {
                Items = schemas.Select(x => SchemaDto.FromSchema(x, controller, app)).ToArray()
            };

            return(result.CreateLinks(controller, app));
        }