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

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

            request.SetProperties(
                response.Name);
            return(request);
        }
Exemple #3
0
        public virtual ApiPipelineStepStatuResponseModel MapRequestToResponse(
            int id,
            ApiPipelineStepStatuRequestModel request)
        {
            var response = new ApiPipelineStepStatuResponseModel();

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