Exemplo n.º 1
0
 public void AddPipeline(ApiPipelineResponseModel item)
 {
     if (!this.Pipelines.Any(x => x.Id == item.Id))
     {
         this.Pipelines.Add(item);
     }
 }
Exemplo n.º 2
0
        public virtual ApiPipelineRequestModel MapResponseToRequest(
            ApiPipelineResponseModel response)
        {
            var request = new ApiPipelineRequestModel();

            request.SetProperties(
                response.PipelineStatusId,
                response.SaleId);
            return(request);
        }
Exemplo n.º 3
0
        public virtual ApiPipelineResponseModel MapRequestToResponse(
            int id,
            ApiPipelineRequestModel request)
        {
            var response = new ApiPipelineResponseModel();

            response.SetProperties(id,
                                   request.PipelineStatusId,
                                   request.SaleId);
            return(response);
        }