Beispiel #1
0
 public void AddOtherTransport(ApiOtherTransportResponseModel item)
 {
     if (!this.OtherTransports.Any(x => x.Id == item.Id))
     {
         this.OtherTransports.Add(item);
     }
 }
        public virtual ApiOtherTransportRequestModel MapResponseToRequest(
            ApiOtherTransportResponseModel response)
        {
            var request = new ApiOtherTransportRequestModel();

            request.SetProperties(
                response.HandlerId,
                response.PipelineStepId);
            return(request);
        }
        public virtual ApiOtherTransportResponseModel MapRequestToResponse(
            int id,
            ApiOtherTransportRequestModel request)
        {
            var response = new ApiOtherTransportResponseModel();

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