public void GeneralLedgerEntries(JToken ledgerEntries) { JToken journals = ledgerEntries.SelectToken("Journal"); JObject generalInfo = FillInfo(ledgerEntries); if (journals != null) { string journalsJson = JsonConvert.SerializeObject(JsonConvert.DeserializeObject <List <SaftJournal> >(journals.ToString())); MongoConnection.AddMany("Journals", journalsJson); } if (generalInfo != null) { MongoConnection.Add("LedgerEntriesInfo", generalInfo.ToString()); } }
public void Header(JToken header) { MongoConnection.Add("Header", header.ToString()); }