public void AddStateRows()
        {
            string restUrlDatasets = ProgramGlobalConstants.PowerBiServiceRootUrl + "datasets/";

            StateTableRows stateRows = SampleData.GetStates();

            foreach (StateRow state in stateRows.rows)
            {
                StateRow[]     rows           = { state };
                StateTableRows singleRowBatch = new StateTableRows {
                    rows = rows
                };
                string jsonStateRows         = JsonConvert.SerializeObject(singleRowBatch);
                string restUrlStateTableRows = string.Format("{0}/{1}/tables/States/rows", restUrlDatasets, CustomDatasetId);
                string json = ExecutePostRequest(restUrlStateTableRows, jsonStateRows);

                // wait 1 second before adding next state
                System.Threading.Thread.Sleep(1000);
            }
        }
    public void AddStateRows() {

      string restUrlDatasets = ProgramGlobalConstants.PowerBiServiceRootUrl + "datasets/";

      StateTableRows stateRows = SampleData.GetStates();

      foreach (StateRow state in stateRows.rows) {
        StateRow[] rows = { state };
        StateTableRows singleRowBatch = new StateTableRows { rows = rows };
        string jsonStateRows = JsonConvert.SerializeObject(singleRowBatch);
        string restUrlStateTableRows = string.Format("{0}/{1}/tables/States/rows", restUrlDatasets, CustomDatasetId);
        string json = ExecutePostRequest(restUrlStateTableRows, jsonStateRows);

        // wait 1 second before adding next state
        System.Threading.Thread.Sleep(1000);
      }


    }