public JsonPatchDocument <ApiOtherTransportRequestModel> CreatePatch(ApiOtherTransportRequestModel model) { var patch = new JsonPatchDocument <ApiOtherTransportRequestModel>(); patch.Replace(x => x.HandlerId, model.HandlerId); patch.Replace(x => x.PipelineStepId, model.PipelineStepId); return(patch); }
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); }