Esempio n. 1
0
        public void AddAnchors(string organization, string product, IEnumerable <AnchorEntity> anchors)
        {
            var items = AnchorModel.Load(organization, product, anchors);

            foreach (var item in items)
            {
                this.Anchors.Add(item);
            }
        }
Esempio n. 2
0
        public static IEnumerable <AnchorModel> Load(string organization, string product, IEnumerable <AnchorEntity> entities)
        {
            var result = new List <AnchorModel>();

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