Example #1
0
        public static EventConsumersDto FromDomain(IEnumerable <EventConsumerInfo> items, Resources resources)
        {
            var result = new EventConsumersDto
            {
                Items = items.Select(x => EventConsumerDto.FromDomain(x, resources)).ToArray()
            };

            return(result.CreateLinks(resources));
        }
Example #2
0
        public static EventConsumersDto FromResults(IEnumerable <EventConsumerInfo> items, ApiController controller)
        {
            var result = new EventConsumersDto
            {
                Items = items.Select(x => EventConsumerDto.FromEventConsumerInfo(x, controller)).ToArray()
            };

            return(result.CreateLinks(controller));
        }