public async Task <IActionResult> GetLogs(string appId, [FromQuery] QueryDto q) { var medias = await logStore.QueryAsync(appId, q.ToQuery <LogQuery>(true), HttpContext.RequestAborted); var response = new ListResponseDto <LogEntryDto>(); response.Items.AddRange(medias.Select(LogEntryDto.FromDomainObject)); response.Total = medias.Total; return(Ok(response)); }