public async Task <IActionResult> ListVersions([FromQuery] int?page, [FromQuery] int?perPage, [FromRoute] string objectId) { var model = await _objectsRepository.GetVersions(new ListVersionsQuery(objectId, page, perPage), CancellationToken.None); if (model == null) { return(NotFound()); } return(Ok(model)); }