예제 #1
0
        public ClubCardTypeVO GetCardTypeByID(int cardTypeID)
        {
            ClubCardTypeData cardTypeData = new ClubCardTypeData();
            ClubCardTypeVO cardTypeVO = new ClubCardTypeVO();
            ClubCardTypePO cardTypePO = cardTypeData.GetCardTypeByID(cardTypeID);
            cardTypeVO = Mapper.Map<ClubCardTypePO, ClubCardTypeVO>(cardTypePO);

            return cardTypeVO;
        }
예제 #2
0
        public List<Model.VO.ClubCardTypeVO> GetAllCardType()
        {
            ClubCardTypeData cardTypeData = new ClubCardTypeData();
            List<ClubCardTypeVO> cardTypeVOList = new List<ClubCardTypeVO>();

            DataSet ds = cardTypeData.GetAllCardType();

            List<ClubCardTypePO> cardTypePOList = ds.GetEntity<List<ClubCardTypePO>>();

            //foreach (var i in cardTypePOList)
            //{
            //    cardTypeVOList.Add(Mapper.Map<ClubCardTypePO, ClubCardTypeVO>(i));
            //}

            cardTypePOList.ForEach(i =>
            {
                cardTypeVOList.Add(Mapper.Map<ClubCardTypePO, ClubCardTypeVO>(i));
            });

            return cardTypeVOList;
        }
예제 #3
0
 public void DelCardType(int id)
 {
     ClubCardTypeData cardTypeData = new ClubCardTypeData();
     cardTypeData.DelCardType(id);
 }
예제 #4
0
 public void EditCardType(Model.VO.ClubCardTypeVO cardType)
 {
     ClubCardTypeData cardTypeData = new ClubCardTypeData();
     cardTypeData.EditCardType(Mapper.Map<ClubCardTypeVO, ClubCardTypePO>(cardType));
 }
예제 #5
0
 public bool EditCardType(Model.VO.ClubCardTypeVO cardType)
 {
     ClubCardTypeData cardTypeData = new ClubCardTypeData();
     return cardTypeData.EditCardType(Mapper.Map<ClubCardTypeVO, ClubCardTypePO>(cardType));
 }