Exemplo n.º 1
0
        public void AddSquadFeature(string organization, string product, string feature, IEnumerable <SquadFeatureEntity> squads)
        {
            var items = SquadFeatureModel.Load(organization, product, feature, squads);

            foreach (var item in items)
            {
                this.SquadFeatures.Add(item);
            }
        }
Exemplo n.º 2
0
        public static IEnumerable <SquadFeatureModel> Load(string organization, string product, string feature,
                                                           IEnumerable <SquadFeatureEntity> entities)
        {
            var result = new List <SquadFeatureModel>();

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