public void Save(string objectId, string collectionId, string content)
 {
     try
     {
         var filepath = Path.Combine(storageDirectoryAbsolutePath, collectionId, objectId + ".json");
         TransactionalFileOps.SaveFileContents(filepath, content);
     }
     catch (Exception exception)
     {
         throw new PersistenceException("Flat File saving failed. See inner exception for details", exception);
     }
 }
 public string TryLoad(string objectId, string collectionId)
 {
     try
     {
         var filepath = Path.Combine(storageDirectoryAbsolutePath, collectionId, objectId + ".json");
         if (!File.Exists(filepath))
         {
             return(null);
         }
         var data = TransactionalFileOps.ReadFileContents(filepath);
         return(data);
     }
     catch (Exception exception)
     {
         throw new PersistenceException("Flat File loading failed. See inner exception for details", exception);
     }
 }