public virtual BOProduct MapEFToBO( Product ef) { var bo = new BOProduct(); bo.SetProperties( ef.ProductID, ef.@Class, ef.Color, ef.DaysToManufacture, ef.DiscontinuedDate, ef.FinishedGoodsFlag, ef.ListPrice, ef.MakeFlag, ef.ModifiedDate, ef.Name, ef.ProductLine, ef.ProductModelID, ef.ProductNumber, ef.ProductSubcategoryID, ef.ReorderPoint, ef.Rowguid, ef.SafetyStockLevel, ef.SellEndDate, ef.SellStartDate, ef.Size, ef.SizeUnitMeasureCode, ef.StandardCost, ef.Style, ef.Weight, ef.WeightUnitMeasureCode); return(bo); }
public virtual BOProduct MapModelToBO( int productID, ApiProductRequestModel model ) { BOProduct boProduct = new BOProduct(); boProduct.SetProperties( productID, model.@Class, model.Color, model.DaysToManufacture, model.DiscontinuedDate, model.FinishedGoodsFlag, model.ListPrice, model.MakeFlag, model.ModifiedDate, model.Name, model.ProductLine, model.ProductModelID, model.ProductNumber, model.ProductSubcategoryID, model.ReorderPoint, model.Rowguid, model.SafetyStockLevel, model.SellEndDate, model.SellStartDate, model.Size, model.SizeUnitMeasureCode, model.StandardCost, model.Style, model.Weight, model.WeightUnitMeasureCode); return(boProduct); }