예제 #1
0
        public virtual ApiSalesOrderDetailResponseModel MapBOToModel(
            BOSalesOrderDetail boSalesOrderDetail)
        {
            var model = new ApiSalesOrderDetailResponseModel();

            model.SetProperties(boSalesOrderDetail.SalesOrderID, boSalesOrderDetail.CarrierTrackingNumber, boSalesOrderDetail.LineTotal, boSalesOrderDetail.ModifiedDate, boSalesOrderDetail.OrderQty, boSalesOrderDetail.ProductID, boSalesOrderDetail.Rowguid, boSalesOrderDetail.SalesOrderDetailID, boSalesOrderDetail.SpecialOfferID, boSalesOrderDetail.UnitPrice, boSalesOrderDetail.UnitPriceDiscount);

            return(model);
        }
예제 #2
0
        public virtual BOSalesOrderDetail MapEFToBO(
            SalesOrderDetail ef)
        {
            var bo = new BOSalesOrderDetail();

            bo.SetProperties(
                ef.SalesOrderID,
                ef.CarrierTrackingNumber,
                ef.LineTotal,
                ef.ModifiedDate,
                ef.OrderQty,
                ef.ProductID,
                ef.Rowguid,
                ef.SalesOrderDetailID,
                ef.SpecialOfferID,
                ef.UnitPrice,
                ef.UnitPriceDiscount);
            return(bo);
        }
예제 #3
0
        public virtual SalesOrderDetail MapBOToEF(
            BOSalesOrderDetail bo)
        {
            SalesOrderDetail efSalesOrderDetail = new SalesOrderDetail();

            efSalesOrderDetail.SetProperties(
                bo.CarrierTrackingNumber,
                bo.LineTotal,
                bo.ModifiedDate,
                bo.OrderQty,
                bo.ProductID,
                bo.Rowguid,
                bo.SalesOrderDetailID,
                bo.SalesOrderID,
                bo.SpecialOfferID,
                bo.UnitPrice,
                bo.UnitPriceDiscount);
            return(efSalesOrderDetail);
        }
예제 #4
0
        public virtual BOSalesOrderDetail MapModelToBO(
            int salesOrderID,
            ApiSalesOrderDetailRequestModel model
            )
        {
            BOSalesOrderDetail boSalesOrderDetail = new BOSalesOrderDetail();

            boSalesOrderDetail.SetProperties(
                salesOrderID,
                model.CarrierTrackingNumber,
                model.LineTotal,
                model.ModifiedDate,
                model.OrderQty,
                model.ProductID,
                model.Rowguid,
                model.SalesOrderDetailID,
                model.SpecialOfferID,
                model.UnitPrice,
                model.UnitPriceDiscount);
            return(boSalesOrderDetail);
        }