public async Task <IEnumerable <BattleResource> > GetAllAsync() { var battles = await _resultsService.ListAsync(); var resources = _mapper.Map <IEnumerable <Battle>, IEnumerable <BattleResource> >(battles); return(resources); }