コード例 #1
0
        public JsonPatchDocument <ApiPipelineStatusRequestModel> CreatePatch(ApiPipelineStatusRequestModel model)
        {
            var patch = new JsonPatchDocument <ApiPipelineStatusRequestModel>();

            patch.Replace(x => x.Name, model.Name);
            return(patch);
        }
コード例 #2
0
        public virtual ApiPipelineStatusRequestModel MapResponseToRequest(
            ApiPipelineStatusResponseModel response)
        {
            var request = new ApiPipelineStatusRequestModel();

            request.SetProperties(
                response.Name);
            return(request);
        }
コード例 #3
0
        public virtual ApiPipelineStatusResponseModel MapRequestToResponse(
            int id,
            ApiPipelineStatusRequestModel request)
        {
            var response = new ApiPipelineStatusResponseModel();

            response.SetProperties(id,
                                   request.Name);
            return(response);
        }