public JsonPatchDocument <ApiPipelineStatusRequestModel> CreatePatch(ApiPipelineStatusRequestModel model) { var patch = new JsonPatchDocument <ApiPipelineStatusRequestModel>(); patch.Replace(x => x.Name, model.Name); return(patch); }
public virtual ApiPipelineStatusRequestModel MapResponseToRequest( ApiPipelineStatusResponseModel response) { var request = new ApiPipelineStatusRequestModel(); request.SetProperties( response.Name); return(request); }
public virtual ApiPipelineStatusResponseModel MapRequestToResponse( int id, ApiPipelineStatusRequestModel request) { var response = new ApiPipelineStatusResponseModel(); response.SetProperties(id, request.Name); return(response); }