public virtual ApiPurchaseOrderHeaderResponseModel MapBOToModel( BOPurchaseOrderHeader boPurchaseOrderHeader) { var model = new ApiPurchaseOrderHeaderResponseModel(); model.SetProperties(boPurchaseOrderHeader.PurchaseOrderID, boPurchaseOrderHeader.EmployeeID, boPurchaseOrderHeader.Freight, boPurchaseOrderHeader.ModifiedDate, boPurchaseOrderHeader.OrderDate, boPurchaseOrderHeader.RevisionNumber, boPurchaseOrderHeader.ShipDate, boPurchaseOrderHeader.ShipMethodID, boPurchaseOrderHeader.Status, boPurchaseOrderHeader.SubTotal, boPurchaseOrderHeader.TaxAmt, boPurchaseOrderHeader.TotalDue, boPurchaseOrderHeader.VendorID); return(model); }
public virtual BOPurchaseOrderHeader MapEFToBO( PurchaseOrderHeader ef) { var bo = new BOPurchaseOrderHeader(); bo.SetProperties( ef.PurchaseOrderID, ef.EmployeeID, ef.Freight, ef.ModifiedDate, ef.OrderDate, ef.RevisionNumber, ef.ShipDate, ef.ShipMethodID, ef.Status, ef.SubTotal, ef.TaxAmt, ef.TotalDue, ef.VendorID); return(bo); }
public virtual PurchaseOrderHeader MapBOToEF( BOPurchaseOrderHeader bo) { PurchaseOrderHeader efPurchaseOrderHeader = new PurchaseOrderHeader(); efPurchaseOrderHeader.SetProperties( bo.EmployeeID, bo.Freight, bo.ModifiedDate, bo.OrderDate, bo.PurchaseOrderID, bo.RevisionNumber, bo.ShipDate, bo.ShipMethodID, bo.Status, bo.SubTotal, bo.TaxAmt, bo.TotalDue, bo.VendorID); return(efPurchaseOrderHeader); }
public virtual BOPurchaseOrderHeader MapModelToBO( int purchaseOrderID, ApiPurchaseOrderHeaderRequestModel model ) { BOPurchaseOrderHeader boPurchaseOrderHeader = new BOPurchaseOrderHeader(); boPurchaseOrderHeader.SetProperties( purchaseOrderID, model.EmployeeID, model.Freight, model.ModifiedDate, model.OrderDate, model.RevisionNumber, model.ShipDate, model.ShipMethodID, model.Status, model.SubTotal, model.TaxAmt, model.TotalDue, model.VendorID); return(boPurchaseOrderHeader); }