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