public void Tilda_can_sync_content()
        {
            var storage = GetStorageProvider();
            var service = new TildaPublishingService(storage, GetSettingsManager());
            var project = service.GetProject(60994);

            service.SaveProject("sample", project);
            var pages = service.GetPages(60994);

            foreach (var page in pages)
            {
                var pageFull = service.GetPageBody(page.Id);
                Console.Write(pageFull.Html);
                service.SavePage("sample", pageFull);
            }
        }
 // Only public methods can be invoked in the background. (Hangfire)
 public void BackgroundSync(string store, SyncInfo syncInfo, SyncNotification notifyEvent)
 {
     try
     {
         var project = _publishingService.GetProject(syncInfo.ProjectId);
         _publishingService.SaveProject(store, project);
         var pages = _publishingService.GetPages(syncInfo.ProjectId);
         foreach (var page in pages)
         {
             var pageFull = _publishingService.GetPageBody(page.Id);
             Console.Write(pageFull.Html);
             _publishingService.SavePage(store, pageFull);
         }
     }
     catch (Exception ex)
     {
         notifyEvent.Description = "Sync failed";
     }
     finally
     {
         //notifyEvent.Finished = DateTime.UtcNow;
         _notifier.Upsert(notifyEvent);
     }
 }