public void AddPipeline(ApiPipelineResponseModel item) { if (!this.Pipelines.Any(x => x.Id == item.Id)) { this.Pipelines.Add(item); } }
public virtual ApiPipelineRequestModel MapResponseToRequest( ApiPipelineResponseModel response) { var request = new ApiPipelineRequestModel(); request.SetProperties( response.PipelineStatusId, response.SaleId); return(request); }
public virtual ApiPipelineResponseModel MapRequestToResponse( int id, ApiPipelineRequestModel request) { var response = new ApiPipelineResponseModel(); response.SetProperties(id, request.PipelineStatusId, request.SaleId); return(response); }