Exemple #1
0
        public virtual ApiVProductAndDescriptionRequestModel MapResponseToRequest(
            ApiVProductAndDescriptionResponseModel response)
        {
            var request = new ApiVProductAndDescriptionRequestModel();

            request.SetProperties(
                response.Description,
                response.Name,
                response.ProductID,
                response.ProductModel);
            return(request);
        }
Exemple #2
0
        public virtual ApiVProductAndDescriptionResponseModel MapRequestToResponse(
            string cultureID,
            ApiVProductAndDescriptionRequestModel request)
        {
            var response = new ApiVProductAndDescriptionResponseModel();

            response.SetProperties(cultureID,
                                   request.Description,
                                   request.Name,
                                   request.ProductID,
                                   request.ProductModel);
            return(response);
        }