public IActionResult Delete(int id, [FromServices] IDeleteDirectorCommand command) { _executor.ExecuteCommand(command, id); return(StatusCode(StatusCodes.Status204NoContent)); }
public IActionResult Delete(int id, [FromServices] IDeleteDirectorCommand command) { _executor.ExecuteCommand(command, id); return(NoContent()); }