public virtual ApiPurchaseOrderDetailResponseModel MapBOToModel(
            BOPurchaseOrderDetail boPurchaseOrderDetail)
        {
            var model = new ApiPurchaseOrderDetailResponseModel();

            model.SetProperties(boPurchaseOrderDetail.PurchaseOrderID, boPurchaseOrderDetail.DueDate, boPurchaseOrderDetail.LineTotal, boPurchaseOrderDetail.ModifiedDate, boPurchaseOrderDetail.OrderQty, boPurchaseOrderDetail.ProductID, boPurchaseOrderDetail.PurchaseOrderDetailID, boPurchaseOrderDetail.ReceivedQty, boPurchaseOrderDetail.RejectedQty, boPurchaseOrderDetail.StockedQty, boPurchaseOrderDetail.UnitPrice);

            return(model);
        }
Ejemplo n.º 2
0
        public virtual BOPurchaseOrderDetail MapEFToBO(
            PurchaseOrderDetail ef)
        {
            var bo = new BOPurchaseOrderDetail();

            bo.SetProperties(
                ef.PurchaseOrderID,
                ef.DueDate,
                ef.LineTotal,
                ef.ModifiedDate,
                ef.OrderQty,
                ef.ProductID,
                ef.PurchaseOrderDetailID,
                ef.ReceivedQty,
                ef.RejectedQty,
                ef.StockedQty,
                ef.UnitPrice);
            return(bo);
        }
Ejemplo n.º 3
0
        public virtual PurchaseOrderDetail MapBOToEF(
            BOPurchaseOrderDetail bo)
        {
            PurchaseOrderDetail efPurchaseOrderDetail = new PurchaseOrderDetail();

            efPurchaseOrderDetail.SetProperties(
                bo.DueDate,
                bo.LineTotal,
                bo.ModifiedDate,
                bo.OrderQty,
                bo.ProductID,
                bo.PurchaseOrderDetailID,
                bo.PurchaseOrderID,
                bo.ReceivedQty,
                bo.RejectedQty,
                bo.StockedQty,
                bo.UnitPrice);
            return(efPurchaseOrderDetail);
        }
        public virtual BOPurchaseOrderDetail MapModelToBO(
            int purchaseOrderID,
            ApiPurchaseOrderDetailRequestModel model
            )
        {
            BOPurchaseOrderDetail boPurchaseOrderDetail = new BOPurchaseOrderDetail();

            boPurchaseOrderDetail.SetProperties(
                purchaseOrderID,
                model.DueDate,
                model.LineTotal,
                model.ModifiedDate,
                model.OrderQty,
                model.ProductID,
                model.PurchaseOrderDetailID,
                model.ReceivedQty,
                model.RejectedQty,
                model.StockedQty,
                model.UnitPrice);
            return(boPurchaseOrderDetail);
        }