public virtual ApiProductCostHistoryResponseModel MapBOToModel( BOProductCostHistory boProductCostHistory) { var model = new ApiProductCostHistoryResponseModel(); model.SetProperties(boProductCostHistory.ProductID, boProductCostHistory.EndDate, boProductCostHistory.ModifiedDate, boProductCostHistory.StandardCost, boProductCostHistory.StartDate); return(model); }
public virtual BOProductCostHistory MapEFToBO( ProductCostHistory ef) { var bo = new BOProductCostHistory(); bo.SetProperties( ef.ProductID, ef.EndDate, ef.ModifiedDate, ef.StandardCost, ef.StartDate); return(bo); }
public virtual ProductCostHistory MapBOToEF( BOProductCostHistory bo) { ProductCostHistory efProductCostHistory = new ProductCostHistory(); efProductCostHistory.SetProperties( bo.EndDate, bo.ModifiedDate, bo.ProductID, bo.StandardCost, bo.StartDate); return(efProductCostHistory); }
public virtual BOProductCostHistory MapModelToBO( int productID, ApiProductCostHistoryRequestModel model ) { BOProductCostHistory boProductCostHistory = new BOProductCostHistory(); boProductCostHistory.SetProperties( productID, model.EndDate, model.ModifiedDate, model.StandardCost, model.StartDate); return(boProductCostHistory); }