Esempio n. 1
0
        /// <summary>
        /// 根据客户注册手机号检索关联的业务员
        /// </summary>
        /// <param name="telephone"></param>
        /// <returns></returns>
        public static List <SalerRelationEntity> GetSalerCustomerByTelephone(string telephone)
        {
            List <SalerRelationEntity> listSalerRelation = new List <SalerRelationEntity>();
            SalerRepository            mr        = new SalerRepository();
            List <SalerRelation>       listSaler = mr.GetSalerCustomerByTelephone(telephone);

            if (listSaler != null && listSaler.Count > 0)
            {
                foreach (SalerRelation info in listSaler)
                {
                    listSalerRelation.Add(TranslateSalerRelation(info));
                }
            }
            return(listSalerRelation);
        }