public async Task <IActionResult> FetchClansAsync() { var clans = await _clanService.FetchClansAsync(); if (!clans.Any()) { return(this.NoContent()); } return(this.Ok(_mapper.Map <IEnumerable <ClanDto> >(clans))); }
public async Task <IActionResult> FetchClansAsync() { var clans = await _clanService.FetchClansAsync(); if (!clans.Any()) { return(this.NoContent()); } return(this.Ok(_mapper.Map <IEnumerable <ClanDto> >(clans))); }