public virtual BOTransaction MapEFToBO(
            Transaction ef)
        {
            var bo = new BOTransaction();

            bo.SetProperties(
                ef.Id,
                ef.Amount,
                ef.GatewayConfirmationNumber,
                ef.TransactionStatusId);
            return(bo);
        }
示例#2
0
        public virtual BOTransaction MapModelToBO(
            int id,
            ApiTransactionRequestModel model
            )
        {
            BOTransaction boTransaction = new BOTransaction();

            boTransaction.SetProperties(
                id,
                model.Amount,
                model.GatewayConfirmationNumber,
                model.TransactionStatusId);
            return(boTransaction);
        }