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