public bool InsertPatientPumpProgram(int siteId, string dataJson) { ServiceLog sl = new ServiceLog(); try { SiteId = siteId; mq = new MeterQueries(siteId); PATIENTPUMPPROGRAMEntity data = JsonConvert.DeserializeObject <PATIENTPUMPPROGRAMEntity>(dataJson); if (data == null) { return(false); } mq.AddPatientPumpProgram(data); return(true); } catch (Exception ex) { //log... sl.Log(Guid.Empty, "InsertPatientPumpProgram", "FirebirdDatabaseService", ex.StackTrace, $"SiteId: {SiteId} - Exception: {ex.Message}", dataJson, ServiceLog.TraceEventType.Error); return(false); } }