Exemplo n.º 1
0
        public async Task <IEnumerable <SquadDto> > GetSquadsAsync(CancellationToken cancellationToken)
        {
            var result = await _squadRepository.GetRangeAsync(cancellationToken);

            return(result.Select(squad => (SquadDto)squad));
        }