/// <summary>
 /// Asynchronous method to the nimbleschedule api to get a list of countries.
 /// </summary>
 /// <param name="authInfo">The authentication object with api credentials.</param>
 /// <returns>.NET List Collection of country objects.</returns>
 public static async Task <List <Country> > GetCountriesAsync(AuthInfo authInfo)
 {
     // call interrface within using so that dispose gets called on resources
     using (NimbleApiInterface apiInterface = new NimbleApiInterface(authInfo))
     {
         return(await apiInterface.GetCountriesAsync());
     }
 }