예제 #1
0
 public void Delete(int id,
                    [FromServices] IDeleteAuthorCommand command)
 {
     _executor.ExecuteCommand(command, id);
 }
 public IActionResult Delete(int id,
                             [FromServices] IDeleteAuthorCommand command)
 {
     _executor.ExecuteCommand(command, id);
     return(StatusCode(StatusCodes.Status204NoContent));
 }