Exemple #1
0
        public List <MappingRule> GetMappingRules()
        {
            if ((ChannelIds == null) || (ChannelIds.Count == 0))
            {
                return(null);
            }
            CanonDataContext   db   = Cdb.Instance;
            List <MappingRule> maps = db.MappingRules.Where(m => ChannelIds.Contains(m.ChannelId)).ToList();

            return(maps);
        }