public virtual ApiCreditCardResponseModel MapBOToModel(
            BOCreditCard boCreditCard)
        {
            var model = new ApiCreditCardResponseModel();

            model.SetProperties(boCreditCard.CreditCardID, boCreditCard.CardNumber, boCreditCard.CardType, boCreditCard.ExpMonth, boCreditCard.ExpYear, boCreditCard.ModifiedDate);

            return(model);
        }
        public virtual BOCreditCard MapEFToBO(
            CreditCard ef)
        {
            var bo = new BOCreditCard();

            bo.SetProperties(
                ef.CreditCardID,
                ef.CardNumber,
                ef.CardType,
                ef.ExpMonth,
                ef.ExpYear,
                ef.ModifiedDate);
            return(bo);
        }
        public virtual CreditCard MapBOToEF(
            BOCreditCard bo)
        {
            CreditCard efCreditCard = new CreditCard();

            efCreditCard.SetProperties(
                bo.CardNumber,
                bo.CardType,
                bo.CreditCardID,
                bo.ExpMonth,
                bo.ExpYear,
                bo.ModifiedDate);
            return(efCreditCard);
        }
        public virtual BOCreditCard MapModelToBO(
            int creditCardID,
            ApiCreditCardRequestModel model
            )
        {
            BOCreditCard boCreditCard = new BOCreditCard();

            boCreditCard.SetProperties(
                creditCardID,
                model.CardNumber,
                model.CardType,
                model.ExpMonth,
                model.ExpYear,
                model.ModifiedDate);
            return(boCreditCard);
        }