Example #1
0
 /// <summary>
 /// Persist shelter information
 /// </summary>
 /// <param name="shelters"></param>
 private void PersistShelterInformation(IList <Shelter> shelters)
 {
     //TO-DO
     //Get existing documents and update them with latest information
     //persist documents in bulk instead of one by one
     foreach (var shelter in shelters)
     {
         dbProvider.InsertDocumentAsync(shelter);
     }
 }