コード例 #1
0
 public IActionResult Delete(int id, [FromServices] IDeleteDirectorCommand command)
 {
     _executor.ExecuteCommand(command, id);
     return(StatusCode(StatusCodes.Status204NoContent));
 }
コード例 #2
0
 public IActionResult Delete(int id, [FromServices] IDeleteDirectorCommand command)
 {
     _executor.ExecuteCommand(command, id);
     return(NoContent());
 }