Exemplo n.º 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));
        }
Exemplo n.º 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));
        }