title: Loop API till null
body: <p>I need some assistance with creating a loop until null is returned on a piece of software I've written.</p>
  <p>The software basically takes information from an API call and deserializes it to a readable format for our online service. The difficulty I am facing is that when I make an API call it is only returning 100 records of employees when the client has far more than that.</p>
  <pre><code>foreach (var bankRecord in bankDetailDto.Value) //
  {
       var deducRecords = deductions.Where(d =&gt; d.Ee_Number == bankRecord.EmployeeNumber).ToList();
       if (deducRecords.Any())
       {
           foreach(var deducRecord in deducRecords)
           {
               deducRecord.Bank_Account_Number = bankRecord.BankAccountNo;
               deducRecord.Bank_Account_Type = bankRecord.AccountType;
           }
       }
  }
  </code></pre>
  <p>This is just an example of the loop I've tried to create but does not seem to work. I am under the impression i need to create a class to perhaps run a loop on the backround worker?</p>
  <p>Apologize I have not been developing for very long.</p>