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))); }
public virtual Task <PagedResultDto <PlayerListDto> > GetListAsync(GetPlayersInput input) { return(_playersAppService.GetListAsync(input)); }