Beispiel #1
0
        public JsonPatchDocument <ApiPipelineStatuRequestModel> CreatePatch(ApiPipelineStatuRequestModel model)
        {
            var patch = new JsonPatchDocument <ApiPipelineStatuRequestModel>();

            patch.Replace(x => x.Name, model.Name);
            return(patch);
        }
Beispiel #2
0
        public virtual ApiPipelineStatuRequestModel MapResponseToRequest(
            ApiPipelineStatuResponseModel response)
        {
            var request = new ApiPipelineStatuRequestModel();

            request.SetProperties(
                response.Name);
            return(request);
        }
Beispiel #3
0
        public virtual ApiPipelineStatuResponseModel MapRequestToResponse(
            int id,
            ApiPipelineStatuRequestModel request)
        {
            var response = new ApiPipelineStatuResponseModel();

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