예제 #1
0
        public async Task <ListResultDto <PlayersListDto> > GetPlayerAsync(GetPlayersInput input)
        {
            var playerLists = await _playerRepository
                              .GetAll()
                              .WhereIf(
                !input.Filter.IsNullOrEmpty(),
                e => e.Id.ToString().Contains(input.Filter)
                )
                              .ToListAsync();

            return(new ListResultDto <PlayersListDto>(ObjectMapper.Map <List <PlayersListDto> >(playerLists)));
        }
예제 #2
0
 public virtual Task <PagedResultDto <PlayerListDto> > GetListAsync(GetPlayersInput input)
 {
     return(_playersAppService.GetListAsync(input));
 }