public virtual ApiProductListPriceHistoryResponseModel MapBOToModel( BOProductListPriceHistory boProductListPriceHistory) { var model = new ApiProductListPriceHistoryResponseModel(); model.SetProperties(boProductListPriceHistory.ProductID, boProductListPriceHistory.EndDate, boProductListPriceHistory.ListPrice, boProductListPriceHistory.ModifiedDate, boProductListPriceHistory.StartDate); return(model); }
public virtual BOProductListPriceHistory MapEFToBO( ProductListPriceHistory ef) { var bo = new BOProductListPriceHistory(); bo.SetProperties( ef.ProductID, ef.EndDate, ef.ListPrice, ef.ModifiedDate, ef.StartDate); return(bo); }
public virtual ProductListPriceHistory MapBOToEF( BOProductListPriceHistory bo) { ProductListPriceHistory efProductListPriceHistory = new ProductListPriceHistory(); efProductListPriceHistory.SetProperties( bo.EndDate, bo.ListPrice, bo.ModifiedDate, bo.ProductID, bo.StartDate); return(efProductListPriceHistory); }
public virtual BOProductListPriceHistory MapModelToBO( int productID, ApiProductListPriceHistoryRequestModel model ) { BOProductListPriceHistory boProductListPriceHistory = new BOProductListPriceHistory(); boProductListPriceHistory.SetProperties( productID, model.EndDate, model.ListPrice, model.ModifiedDate, model.StartDate); return(boProductListPriceHistory); }