public static void ExportCostCentersFromTally(int companyId)
 {
     try
     {
         string        tallyRequestMessage = TallyMessageCreator.CreateExportCostCentreRequestMessage();
         string        tallyResponse       = TallyConnector.SendRequestToTally(tallyRequestMessage);
         List <Ledger> CostcenterList      = ParseTallyResponseForCostCenters(tallyResponse);
         MastersAPI.InsertUpdateCostCentresInCRS(CostcenterList, companyId);
     }
     catch (Exception ex)
     {
         Logger.WriteLog("TallyExporter", "ExportCostCentersFromTally", ex.Message);
     }
 }
        public static void ExportLedgersFromTally(int companyId)
        {
            try
            {
                string tallyRequestMessage = TallyMessageCreator.CreateExportLedgersRequestMessage();
                string tallyResponse       = TallyConnector.SendRequestToTally(tallyRequestMessage);

                List <Ledger> ledgerList = ParseTallyResponseForLedgers(tallyResponse);
                // string jsonconvertedFromDataset = JsonConvert.SerializeObject(ledgerList);
                MastersAPI.InsertUpdateLedgersInCRS(ledgerList, companyId);
            }
            catch (Exception ex)
            {
                Logger.WriteLog("TallyExporter", "ExportLedgersFromTally", ex.Message);
            }
        }