Beispiel #1
0
        public virtual ApiProductCostHistoryResponseModel MapBOToModel(
            BOProductCostHistory boProductCostHistory)
        {
            var model = new ApiProductCostHistoryResponseModel();

            model.SetProperties(boProductCostHistory.ProductID, boProductCostHistory.EndDate, boProductCostHistory.ModifiedDate, boProductCostHistory.StandardCost, boProductCostHistory.StartDate);

            return(model);
        }
Beispiel #2
0
        public virtual BOProductCostHistory MapEFToBO(
            ProductCostHistory ef)
        {
            var bo = new BOProductCostHistory();

            bo.SetProperties(
                ef.ProductID,
                ef.EndDate,
                ef.ModifiedDate,
                ef.StandardCost,
                ef.StartDate);
            return(bo);
        }
Beispiel #3
0
        public virtual ProductCostHistory MapBOToEF(
            BOProductCostHistory bo)
        {
            ProductCostHistory efProductCostHistory = new ProductCostHistory();

            efProductCostHistory.SetProperties(
                bo.EndDate,
                bo.ModifiedDate,
                bo.ProductID,
                bo.StandardCost,
                bo.StartDate);
            return(efProductCostHistory);
        }
Beispiel #4
0
        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);
        }