Ejemplo n.º 1
0
        public virtual ApiProductModelProductDescriptionCultureRequestModel MapResponseToRequest(
            ApiProductModelProductDescriptionCultureResponseModel response)
        {
            var request = new ApiProductModelProductDescriptionCultureRequestModel();

            request.SetProperties(
                response.CultureID,
                response.ModifiedDate,
                response.ProductDescriptionID);
            return(request);
        }
Ejemplo n.º 2
0
        public virtual ApiProductModelProductDescriptionCultureResponseModel MapRequestToResponse(
            int productModelID,
            ApiProductModelProductDescriptionCultureRequestModel request)
        {
            var response = new ApiProductModelProductDescriptionCultureResponseModel();

            response.SetProperties(productModelID,
                                   request.CultureID,
                                   request.ModifiedDate,
                                   request.ProductDescriptionID);
            return(response);
        }
Ejemplo n.º 3
0
        public JsonPatchDocument <ApiProductModelProductDescriptionCultureRequestModel> CreatePatch(ApiProductModelProductDescriptionCultureRequestModel model)
        {
            var patch = new JsonPatchDocument <ApiProductModelProductDescriptionCultureRequestModel>();

            patch.Replace(x => x.CultureID, model.CultureID);
            patch.Replace(x => x.ModifiedDate, model.ModifiedDate);
            patch.Replace(x => x.ProductDescriptionID, model.ProductDescriptionID);
            return(patch);
        }