예제 #1
0
파일: ClubCardMgm.cs 프로젝트: WISD/WisdCar
        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
파일: ClubCardMgm.cs 프로젝트: WISD/WisdCar
        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;
        }