Beispiel #1
0
 public void AddPipelineStepStatu(ApiPipelineStepStatuResponseModel item)
 {
     if (!this.PipelineStepStatus.Any(x => x.Id == item.Id))
     {
         this.PipelineStepStatus.Add(item);
     }
 }
Beispiel #2
0
        public virtual ApiPipelineStepStatuRequestModel MapResponseToRequest(
            ApiPipelineStepStatuResponseModel response)
        {
            var request = new ApiPipelineStepStatuRequestModel();

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

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