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)); }