예제 #1
0
        public static List <SalerEntity> GetSalerInfoByRule(string name, int status, PagerInfo pager)
        {
            List <SalerEntity> all    = new List <SalerEntity>();
            SalerRepository    mr     = new SalerRepository();
            List <SalerInfo>   miList = mr.GetSaler(name, status, pager);

            if (!miList.IsEmpty())
            {
                foreach (SalerInfo mInfo in miList)
                {
                    SalerEntity storeEntity = TranslateSalerInfo(mInfo);
                    all.Add(storeEntity);
                }
            }

            return(all);
        }