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)); }
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)); }