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