예제 #1
0
 public void AddHandlerPipelineStep(ApiHandlerPipelineStepResponseModel item)
 {
     if (!this.HandlerPipelineSteps.Any(x => x.Id == item.Id))
     {
         this.HandlerPipelineSteps.Add(item);
     }
 }
        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);
        }