示例#1
0
        public static RuleEventsDto FromRuleEvents(IResultList <IRuleEventEntity> ruleEvents, Resources resources)
        {
            var result = new RuleEventsDto
            {
                Total = ruleEvents.Total,
                Items = ruleEvents.Select(x => RuleEventDto.FromRuleEvent(x, resources)).ToArray()
            };

            return(result.CreateLinks(resources));
        }
示例#2
0
        public static RuleEventsDto FromRuleEvents(IResultList <IRuleEventEntity> ruleEvents, ApiController controller, string app)
        {
            var result = new RuleEventsDto
            {
                Total = ruleEvents.Total,
                Items = ruleEvents.Select(x => RuleEventDto.FromRuleEvent(x, controller, app)).ToArray()
            };

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