Пример #1
0
        public async Task <IActionResult> FetchDivisionsAsync(ClanId clanId)
        {
            var divisions = await _clanService.FetchDivisionsAsync(clanId);

            if (!divisions.Any())
            {
                return(this.NoContent());
            }

            return(this.Ok(_mapper.Map <IEnumerable <DivisionDto> >(divisions)));
        }