public void AddNewTreatmentPlanTreatments(TreatmentOnPlan t) { //Keep count for Sychronization DAOCount++; FBCount++; sqlite.UpdateCountRecordSQlite(DAOCount); firebaseDAO.UpdateCountRecordFB(FBCount); int id = (int)sqlite.AddNewTreatmentPlanTreatments(t); firebaseDAO.AddNewTreatmentPlanTreatments(t, id); }