@@ -211,36 +211,36 @@ public virtual async Task<IActionResult> PostAsync([FromBody] TResource resource
211211 /// Adds resources to a to-many relationship. Example: POST /articles/1/revisions HTTP/1.1
212212 /// </summary>
213213 /// <param name="id">
214- /// The identifier of the primary resource .
214+ /// Identifies the left side of the relationship .
215215 /// </param>
216216 /// <param name="relationshipName">
217217 /// The relationship to add resources to.
218218 /// </param>
219- /// <param name="secondaryResourceIds ">
219+ /// <param name="rightResourceIds ">
220220 /// The set of resources to add to the relationship.
221221 /// </param>
222222 /// <param name="cancellationToken">
223223 /// Propagates notification that request handling should be canceled.
224224 /// </param>
225- public virtual async Task < IActionResult > PostRelationshipAsync ( TId id , string relationshipName , [ FromBody ] ISet < IIdentifiable > secondaryResourceIds ,
225+ public virtual async Task < IActionResult > PostRelationshipAsync ( TId id , string relationshipName , [ FromBody ] ISet < IIdentifiable > rightResourceIds ,
226226 CancellationToken cancellationToken )
227227 {
228228 _traceWriter . LogMethodStart ( new
229229 {
230230 id ,
231231 relationshipName ,
232- secondaryResourceIds
232+ rightResourceIds
233233 } ) ;
234234
235235 ArgumentGuard . NotNullNorEmpty ( relationshipName , nameof ( relationshipName ) ) ;
236- ArgumentGuard . NotNull ( secondaryResourceIds , nameof ( secondaryResourceIds ) ) ;
236+ ArgumentGuard . NotNull ( rightResourceIds , nameof ( rightResourceIds ) ) ;
237237
238238 if ( _addToRelationship == null )
239239 {
240240 throw new RequestMethodNotAllowedException ( HttpMethod . Post ) ;
241241 }
242242
243- await _addToRelationship . AddToToManyRelationshipAsync ( id , relationshipName , secondaryResourceIds , cancellationToken ) ;
243+ await _addToRelationship . AddToToManyRelationshipAsync ( id , relationshipName , rightResourceIds , cancellationToken ) ;
244244
245245 return NoContent ( ) ;
246246 }
@@ -279,25 +279,25 @@ public virtual async Task<IActionResult> PatchAsync(TId id, [FromBody] TResource
279279 /// /articles/1/relationships/revisions HTTP/1.1
280280 /// </summary>
281281 /// <param name="id">
282- /// The identifier of the primary resource .
282+ /// Identifies the left side of the relationship .
283283 /// </param>
284284 /// <param name="relationshipName">
285285 /// The relationship for which to perform a complete replacement.
286286 /// </param>
287- /// <param name="secondaryResourceIds ">
287+ /// <param name="rightValue ">
288288 /// The resource or set of resources to assign to the relationship.
289289 /// </param>
290290 /// <param name="cancellationToken">
291291 /// Propagates notification that request handling should be canceled.
292292 /// </param>
293- public virtual async Task < IActionResult > PatchRelationshipAsync ( TId id , string relationshipName , [ FromBody ] object secondaryResourceIds ,
293+ public virtual async Task < IActionResult > PatchRelationshipAsync ( TId id , string relationshipName , [ FromBody ] object rightValue ,
294294 CancellationToken cancellationToken )
295295 {
296296 _traceWriter . LogMethodStart ( new
297297 {
298298 id ,
299299 relationshipName ,
300- secondaryResourceIds
300+ rightValue
301301 } ) ;
302302
303303 ArgumentGuard . NotNullNorEmpty ( relationshipName , nameof ( relationshipName ) ) ;
@@ -307,7 +307,7 @@ public virtual async Task<IActionResult> PatchRelationshipAsync(TId id, string r
307307 throw new RequestMethodNotAllowedException ( HttpMethod . Patch ) ;
308308 }
309309
310- await _setRelationship . SetRelationshipAsync ( id , relationshipName , secondaryResourceIds , cancellationToken ) ;
310+ await _setRelationship . SetRelationshipAsync ( id , relationshipName , rightValue , cancellationToken ) ;
311311
312312 return NoContent ( ) ;
313313 }
@@ -336,36 +336,36 @@ public virtual async Task<IActionResult> DeleteAsync(TId id, CancellationToken c
336336 /// Removes resources from a to-many relationship. Example: DELETE /articles/1/relationships/revisions HTTP/1.1
337337 /// </summary>
338338 /// <param name="id">
339- /// The identifier of the primary resource .
339+ /// Identifies the left side of the relationship .
340340 /// </param>
341341 /// <param name="relationshipName">
342342 /// The relationship to remove resources from.
343343 /// </param>
344- /// <param name="secondaryResourceIds ">
344+ /// <param name="rightResourceIds ">
345345 /// The set of resources to remove from the relationship.
346346 /// </param>
347347 /// <param name="cancellationToken">
348348 /// Propagates notification that request handling should be canceled.
349349 /// </param>
350- public virtual async Task < IActionResult > DeleteRelationshipAsync ( TId id , string relationshipName , [ FromBody ] ISet < IIdentifiable > secondaryResourceIds ,
350+ public virtual async Task < IActionResult > DeleteRelationshipAsync ( TId id , string relationshipName , [ FromBody ] ISet < IIdentifiable > rightResourceIds ,
351351 CancellationToken cancellationToken )
352352 {
353353 _traceWriter . LogMethodStart ( new
354354 {
355355 id ,
356356 relationshipName ,
357- secondaryResourceIds
357+ rightResourceIds
358358 } ) ;
359359
360360 ArgumentGuard . NotNullNorEmpty ( relationshipName , nameof ( relationshipName ) ) ;
361- ArgumentGuard . NotNull ( secondaryResourceIds , nameof ( secondaryResourceIds ) ) ;
361+ ArgumentGuard . NotNull ( rightResourceIds , nameof ( rightResourceIds ) ) ;
362362
363363 if ( _removeFromRelationship == null )
364364 {
365365 throw new RequestMethodNotAllowedException ( HttpMethod . Delete ) ;
366366 }
367367
368- await _removeFromRelationship . RemoveFromToManyRelationshipAsync ( id , relationshipName , secondaryResourceIds , cancellationToken ) ;
368+ await _removeFromRelationship . RemoveFromToManyRelationshipAsync ( id , relationshipName , rightResourceIds , cancellationToken ) ;
369369
370370 return NoContent ( ) ;
371371 }
0 commit comments