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