예제 #1
0
        //业务经理
        public List <CustomerManagerInfo> GetListCustomerManagerInfo(string name)
        {
            Expression <Func <CustomerManagerInfo, bool> > filter = p => true;

            if (string.IsNullOrEmpty(name))
            {
                return(_customerManagerInfoRepository.GetList(filter));
            }
            else
            {
                return(_customerManagerInfoRepository.GetList(p => p.ID.ToString().Contains(name) || p.Name.Contains(name)));
            }
        }