public void AddHandlerPipelineStep(ApiHandlerPipelineStepClientResponseModel item) { if (!this.HandlerPipelineSteps.Any(x => x.Id == item.Id)) { this.HandlerPipelineSteps.Add(item); } }
public virtual ApiHandlerPipelineStepClientRequestModel MapClientResponseToRequest( ApiHandlerPipelineStepClientResponseModel response) { var request = new ApiHandlerPipelineStepClientRequestModel(); request.SetProperties( response.HandlerId, response.PipelineStepId); return(request); }
public virtual ApiHandlerPipelineStepClientResponseModel MapClientRequestToResponse( int id, ApiHandlerPipelineStepClientRequestModel request) { var response = new ApiHandlerPipelineStepClientResponseModel(); response.SetProperties(id, request.HandlerId, request.PipelineStepId); return(response); }