示例#1
0
        public List <merchant> Process(String State, String city, String Sublocality, string Category)
        {
            system_configs  tconfig           = (from s in DB.system_configs where s.tag == "FeaturePhoneLimit" select s).FirstOrDefault();
            int             FeaturePhoneLimit = Int32.Parse(tconfig.value);
            List <merchant> tList             = (from m in DB.merchants
                                                 where m.state == State &&
                                                 m.city == city &&
                                                 m.sublocality == Sublocality
                                                 select m).Take(FeaturePhoneLimit).ToList();

            return(tList);
        }
示例#2
0
        public bool Process(int MerchantId)
        {
            merchant tMerchant = (from m in DB.merchants where m.id == MerchantId select m).SingleOrDefault();

            if (tMerchant != null)
            {
                system_configs tConfig = (from s in DB.system_configs select s).SingleOrDefault();
                if (tConfig != null)
                {
                }
            }
            return(true);
        }