public List <PokerGameInfo> GetPokerGames(int?FirstRow, int?LastRow, int?TotalRows) { List <PokerGameInfo> pokerGameList = null; try { GameInfoContext gameInfoContext = new GameInfoContext(); pokerGameList = gameInfoContext.GetPokerGames(FirstRow, LastRow, TotalRows); if (pokerGameList.Count > 0) { _logger.InfoFormat(pokerGameList, pokerGameList.Count.ToString() + " pokerGame has found.", "GetPokerGames"); } else { _logger.InfoFormat(pokerGameList, "No pokerGame has found.", "GetPokerGames"); } } catch (Exception ex) { _logger.ErrorFormat(ex.TargetSite, ex.Message, ex.Source, "GetPokerGames"); } return(pokerGameList); }