@@ -129,22 +129,22 @@ public IActionResult Update([FromBody] SeriesModel model)
129129 /// <summary>
130130 /// Merge two series records..
131131 /// </summary>
132- /// <param name="id ">the master series record </param>
133- /// <param name="fromId">the record to be merged into the master </param>
132+ /// <param name="intoId ">the record to be merged into the master </param>
133+ /// <param name="fromId">the master series record </param>
134134 /// <returns></returns>
135- [ HttpPut ( "{id }/merge/{fromId}" ) ]
135+ [ HttpPut ( "{intoId }/merge/{fromId}" ) ]
136136 [ Produces ( MediaTypeNames . Application . Json ) ]
137137 [ ProducesResponseType ( typeof ( SeriesModel ) , ( int ) HttpStatusCode . OK ) ]
138138 [ ProducesResponseType ( typeof ( ErrorResponseModel ) , ( int ) HttpStatusCode . BadRequest ) ]
139139 [ SwaggerOperation ( Tags = new [ ] { "Series" } ) ]
140- public IActionResult Merge ( int id , int fromId )
140+ public IActionResult Merge ( int fromId , int intoId )
141141 {
142142 // make sure the merge target exists
143- var _ = _service . FindById ( id ) ?? throw new NoContentException ( ) ;
143+ var _ = _service . FindById ( fromId ) ?? throw new NoContentException ( ) ;
144144 // make sure the merge source exists
145- _ = _service . FindById ( fromId ) ?? throw new NoContentException ( ) ;
145+ _ = _service . FindById ( intoId ) ?? throw new NoContentException ( ) ;
146146 // merge the source into the target
147- var result = _service . Merge ( id , fromId ) ?? throw new NoContentException ( ) ;
147+ var result = _service . Merge ( fromId , intoId ) ?? throw new NoContentException ( ) ;
148148 return new JsonResult ( new SeriesModel ( result ) ) ;
149149 }
150150
0 commit comments