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; }
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; }
public void DelCardType(int id) { ClubCardTypeData cardTypeData = new ClubCardTypeData(); cardTypeData.DelCardType(id); }
public void EditCardType(Model.VO.ClubCardTypeVO cardType) { ClubCardTypeData cardTypeData = new ClubCardTypeData(); cardTypeData.EditCardType(Mapper.Map<ClubCardTypeVO, ClubCardTypePO>(cardType)); }
public bool EditCardType(Model.VO.ClubCardTypeVO cardType) { ClubCardTypeData cardTypeData = new ClubCardTypeData(); return cardTypeData.EditCardType(Mapper.Map<ClubCardTypeVO, ClubCardTypePO>(cardType)); }