public virtual ApiTransactionStatusResponseModel MapBOToModel(
            BOTransactionStatus boTransactionStatus)
        {
            var model = new ApiTransactionStatusResponseModel();

            model.SetProperties(boTransactionStatus.Id, boTransactionStatus.Name);

            return(model);
        }
示例#2
0
        public virtual BOTransactionStatus MapEFToBO(
            TransactionStatus ef)
        {
            var bo = new BOTransactionStatus();

            bo.SetProperties(
                ef.Id,
                ef.Name);
            return(bo);
        }
示例#3
0
        public virtual TransactionStatus MapBOToEF(
            BOTransactionStatus bo)
        {
            TransactionStatus efTransactionStatus = new TransactionStatus();

            efTransactionStatus.SetProperties(
                bo.Id,
                bo.Name);
            return(efTransactionStatus);
        }
        public virtual BOTransactionStatus MapModelToBO(
            int id,
            ApiTransactionStatusRequestModel model
            )
        {
            BOTransactionStatus boTransactionStatus = new BOTransactionStatus();

            boTransactionStatus.SetProperties(
                id,
                model.Name);
            return(boTransactionStatus);
        }