Beispiel #1
0
        public void AddJourneyMaps(string organization, string product, string journey, IEnumerable <JourneyMapEntity> maps)
        {
            var items = JourneyMapModel.Load(organization, product, journey, maps);

            foreach (var item in items)
            {
                this.JourneyMaps.Add(item);
            }
        }
Beispiel #2
0
        public static IEnumerable <JourneyMapModel> Load(string organization,
                                                         string product, string journey, IEnumerable <JourneyMapEntity> entities)
        {
            var result = new List <JourneyMapModel>();

            foreach (var item in entities)
            {
                var model = new JourneyMapModel();
                model.Load(organization, product, journey, item.Feature.Name);
                result.Add(model);
            }
            return(result);
        }