Ejemplo n.º 1
0
 public void AddPipelineStepStatus(ApiPipelineStepStatusResponseModel item)
 {
     if (!this.PipelineStepStatus.Any(x => x.Id == item.Id))
     {
         this.PipelineStepStatus.Add(item);
     }
 }
        public virtual ApiPipelineStepStatusRequestModel MapResponseToRequest(
            ApiPipelineStepStatusResponseModel response)
        {
            var request = new ApiPipelineStepStatusRequestModel();

            request.SetProperties(
                response.Name);
            return(request);
        }
        public virtual ApiPipelineStepStatusResponseModel MapRequestToResponse(
            int id,
            ApiPipelineStepStatusRequestModel request)
        {
            var response = new ApiPipelineStepStatusResponseModel();

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