Esempio n. 1
0
        public List <string> AllTagsBySubModule(string subModule)
        {
            List <string> list = new List <string>();

            //var query = from a in Analytics.AsQueryable<Domain.Analytic>()
            //        select a.Tags.Distinct();

            //return query.ToList();

            switch (subModule)
            {
            case "Analytics":
                var query = Analytics.Distinct(

                    "Tags"

                    );

                foreach (var item in query.ToList())
                {
                    list.Add(item.ToString());
                }
                return(list);

            case "Everyday":
            case "Promotions":
            case "Kits":
                var pquery = PriceRoutines.Distinct(

                    "Tags"

                    );

                foreach (var item in pquery.ToList())
                {
                    list.Add(item.ToString());
                }
                return(list);

            default: return(null);
            }
        }