Пример #1
0
        public List<Model.VO.ClubCardVO> GetClubCards(string key)
        {
            ClubCardData clubCardData = new ClubCardData();
            List<ClubCardVO> clubCardVOList = new List<ClubCardVO>();

            DataSet ds = clubCardData.GetClubCards(key);
            List<ClubCardPO> clubCardPOList = ds.GetEntity<List<ClubCardPO>>();

            clubCardPOList.ForEach(i =>
            {
                clubCardVOList.Add(Mapper.Map<ClubCardPO, ClubCardVO>(i));
            });

            return clubCardVOList;
        }
Пример #2
0
        public List<Model.VO.ClubCardVO> GetClubCards(Model.Entity.ClubCardQueryEntity entity)
        {
            ClubCardData clubCardData = new ClubCardData();
            List<ClubCardVO> clubCardVOList = new List<ClubCardVO>();

            DataSet ds = clubCardData.GetClubCards(entity);
            List<ClubCardPO> clubCardPOList = ds.GetEntity<List<ClubCardPO>>();
            if(clubCardPOList==null)
            {
                clubCardPOList = new List<ClubCardPO>();
            }
            clubCardPOList.ForEach(i =>
            {
                clubCardVOList.Add(Mapper.Map<ClubCardPO, ClubCardVO>(i));
            });

            return clubCardVOList;
        }