Пример #1
0
        public async Task <IActionResult> GetAsync()
        {
            var rounds = await _roundService.GetAllAsync();

            if (rounds.Any())
            {
                return(Ok(rounds.Select(x => RoundAdapter.ToRoundDTO(x))));
            }

            return(NoContent());
        }