public async Task <IActionResult> GetByRankingIdAsync([FromQuery] Guid rankingId) { var rounds = await _roundService.GetByRankingIdAsync(rankingId); if (rounds.Any()) { return(Ok(rounds.Select(x => RoundAdapter.ToRoundDTO(x)))); } return(NoContent()); }