Example #1
0
        public BatchCodeNamePairList GetCodeNamePairs(CodeNamePairQueryFilter query)
        {
            BatchCodeNamePairList returnList = new BatchCodeNamePairList();

            if (query != null && query.Keys != null && query.Keys.Length > 0)
            {
                foreach (var key in query.Keys)
                {
                    returnList.Add(key, CodeNamePairManager.GetCodeNamePairList(query.DomainName, key, query.AppendItemType));
                }
            }
            return(returnList);
        }
Example #2
0
 public List <CodeNamePair> GetCodeNamePairByKey(CodeNamePairQueryFilter query)
 {
     return(CodeNamePairManager.GetCodeNamePairList(query.DomainName, query.Keys[0], query.AppendItemType));
 }