Example #1
0
        public virtual ApiProductListPriceHistoryRequestModel MapResponseToRequest(
            ApiProductListPriceHistoryResponseModel response)
        {
            var request = new ApiProductListPriceHistoryRequestModel();

            request.SetProperties(
                response.EndDate,
                response.ListPrice,
                response.ModifiedDate,
                response.StartDate);
            return(request);
        }
Example #2
0
        public virtual ApiProductListPriceHistoryResponseModel MapRequestToResponse(
            int productID,
            ApiProductListPriceHistoryRequestModel request)
        {
            var response = new ApiProductListPriceHistoryResponseModel();

            response.SetProperties(productID,
                                   request.EndDate,
                                   request.ListPrice,
                                   request.ModifiedDate,
                                   request.StartDate);
            return(response);
        }