Exemple #1
0
        public static PatternsDto FromApp(IAppEntity app, Resources resources)
        {
            var result = new PatternsDto
            {
                Items = app.Patterns.Select(x => PatternDto.FromPattern(x.Key, x.Value, resources)).ToArray()
            };

            return(result.CreateLinks(resources));
        }
Exemple #2
0
        public static PatternsDto FromApp(IAppEntity app, ApiController controller)
        {
            var result = new PatternsDto
            {
                Items = app.Patterns.Select(x => PatternDto.FromPattern(x.Key, x.Value, controller, app.Name)).ToArray()
            };

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