Exemplo n.º 1
0
 public void AddOtherTransport(ApiOtherTransportClientResponseModel item)
 {
     if (!this.OtherTransports.Any(x => x.Id == item.Id))
     {
         this.OtherTransports.Add(item);
     }
 }
        public virtual ApiOtherTransportClientRequestModel MapClientResponseToRequest(
            ApiOtherTransportClientResponseModel response)
        {
            var request = new ApiOtherTransportClientRequestModel();

            request.SetProperties(
                response.HandlerId,
                response.PipelineStepId);
            return(request);
        }
        public virtual ApiOtherTransportClientResponseModel MapClientRequestToResponse(
            int id,
            ApiOtherTransportClientRequestModel request)
        {
            var response = new ApiOtherTransportClientResponseModel();

            response.SetProperties(id,
                                   request.HandlerId,
                                   request.PipelineStepId);
            return(response);
        }