public JsonPatchDocument <ApiHandlerPipelineStepRequestModel> CreatePatch(ApiHandlerPipelineStepRequestModel model)
        {
            var patch = new JsonPatchDocument <ApiHandlerPipelineStepRequestModel>();

            patch.Replace(x => x.HandlerId, model.HandlerId);
            patch.Replace(x => x.PipelineStepId, model.PipelineStepId);
            return(patch);
        }
        public virtual ApiHandlerPipelineStepRequestModel MapResponseToRequest(
            ApiHandlerPipelineStepResponseModel response)
        {
            var request = new ApiHandlerPipelineStepRequestModel();

            request.SetProperties(
                response.HandlerId,
                response.PipelineStepId);
            return(request);
        }
        public virtual ApiHandlerPipelineStepResponseModel MapRequestToResponse(
            int id,
            ApiHandlerPipelineStepRequestModel request)
        {
            var response = new ApiHandlerPipelineStepResponseModel();

            response.SetProperties(id,
                                   request.HandlerId,
                                   request.PipelineStepId);
            return(response);
        }