/// <summary> /// This method displays Counter Strike scores /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void getCounterStrike() { using (GameContextAzure db = new GameContextAzure()) { var csData = (from cStrike in db.GameTable select cStrike); CounterStrikeGridView.DataSource = csData.ToList(); CounterStrikeGridView.DataBind(); } }
/// <summary> /// This method displays Counter Strike scores /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void getCounterStrike() { using (GameContextAzure db = new GameContextAzure()) { var counterstrikeData = ( from counterstrike in db.GameTable where counterstrike.GAME_NAME.Equals("CounterStrike") select counterstrike ); CounterStrikeGridView.DataSource = counterstrikeData.ToList(); CounterStrikeGridView.DataBind(); } }