Exemple #1
0
        public bool UpdateDmdata(int siteId, string dataJson)
        {
            ServiceLog sl = new ServiceLog();

            try
            {
                SiteId = siteId;
                mq     = new MeterQueries(siteId);

                DMDATAEntity data = JsonConvert.DeserializeObject <DMDATAEntity>(dataJson);
                if (data == null)
                {
                    return(false);
                }

                mq.UpdateDmDataValues(data.PATIENTID, data.LOWBGLEVEL, data.HIGHBGLEVEL, data.LASTMODIFIEDDATE);

                return(true);
            }
            catch (Exception ex)
            {
                //log...
                sl.Log(Guid.Empty, "UpdateDmdata", "FirebirdDatabaseService", ex.StackTrace, $"SiteId: {SiteId} - Exception: {ex.Message}", dataJson, ServiceLog.TraceEventType.Error);

                return(false);
            }
        }