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); }
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); }
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); }
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); }