public virtual ApiBillOfMaterialResponseModel MapBOToModel( BOBillOfMaterial boBillOfMaterial) { var model = new ApiBillOfMaterialResponseModel(); model.SetProperties(boBillOfMaterial.BillOfMaterialsID, boBillOfMaterial.BOMLevel, boBillOfMaterial.ComponentID, boBillOfMaterial.EndDate, boBillOfMaterial.ModifiedDate, boBillOfMaterial.PerAssemblyQty, boBillOfMaterial.ProductAssemblyID, boBillOfMaterial.StartDate, boBillOfMaterial.UnitMeasureCode); return(model); }
public virtual BOBillOfMaterial MapEFToBO( BillOfMaterial ef) { var bo = new BOBillOfMaterial(); bo.SetProperties( ef.BillOfMaterialsID, ef.BOMLevel, ef.ComponentID, ef.EndDate, ef.ModifiedDate, ef.PerAssemblyQty, ef.ProductAssemblyID, ef.StartDate, ef.UnitMeasureCode); return(bo); }
public virtual BillOfMaterial MapBOToEF( BOBillOfMaterial bo) { BillOfMaterial efBillOfMaterial = new BillOfMaterial(); efBillOfMaterial.SetProperties( bo.BillOfMaterialsID, bo.BOMLevel, bo.ComponentID, bo.EndDate, bo.ModifiedDate, bo.PerAssemblyQty, bo.ProductAssemblyID, bo.StartDate, bo.UnitMeasureCode); return(efBillOfMaterial); }
public virtual BOBillOfMaterial MapModelToBO( int billOfMaterialsID, ApiBillOfMaterialRequestModel model ) { BOBillOfMaterial boBillOfMaterial = new BOBillOfMaterial(); boBillOfMaterial.SetProperties( billOfMaterialsID, model.BOMLevel, model.ComponentID, model.EndDate, model.ModifiedDate, model.PerAssemblyQty, model.ProductAssemblyID, model.StartDate, model.UnitMeasureCode); return(boBillOfMaterial); }