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

            request.SetProperties(
                response.IllustrationID,
                response.ModifiedDate);
            return(request);
        }
Exemple #2
0
        public virtual ApiProductModelIllustrationResponseModel MapRequestToResponse(
            int productModelID,
            ApiProductModelIllustrationRequestModel request)
        {
            var response = new ApiProductModelIllustrationResponseModel();

            response.SetProperties(productModelID,
                                   request.IllustrationID,
                                   request.ModifiedDate);
            return(response);
        }
Exemple #3
0
        public JsonPatchDocument <ApiProductModelIllustrationRequestModel> CreatePatch(ApiProductModelIllustrationRequestModel model)
        {
            var patch = new JsonPatchDocument <ApiProductModelIllustrationRequestModel>();

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