Ejemplo n.º 1
0
        public async Task <List <Player> > SearchOtherTeamPlayers(string playerName, int teamId)
        {
            var condition = new PlayerSearchCondition(playerName, teamId);
            var players   = await this.playerRepository.SearchAsync(condition);

            return(players);
        }
Ejemplo n.º 2
0
        public async Task <List <Player> > SearchPlayerList(int seasonId, int[] categoryIds, int[] genderIds, string playerName, string teamName)
        {
            var condition = new PlayerSearchCondition(categoryIds, genderIds, playerName, teamName);

            return(await this.playerRepository.SearchListAsync(condition, seasonId));
        }
Ejemplo n.º 3
0
        public async Task <Pagable <Player> > SearchPlayerPagedList(int pageIndex, int displayCount, int seasonId, int[] categoryIds, int[] genderIds, string playerName, string teamName)
        {
            var condition = new PlayerSearchCondition(pageIndex, displayCount, categoryIds, genderIds, playerName, teamName);

            return(await this.playerRepository.SearchPagedListAsync(condition, seasonId));
        }