示例#1
0
 private void GetData()
 {
     try
     {
         Config = _provider.Get();
     }
     catch (Exception ex)
     {
         _nlogger.Error(ex, ex.Message);
     }
 }
示例#2
0
        // GET: AlarmSystemView
        public ActionResult Device(int DeviceId)
        {
            AlarmSystemDetailModel model = null;

            try
            {
                var provider = new DeviceConfigService(DomainSession.GetAlarmConfigForContextWithDeviceId(this.HttpContext, DeviceId));
                model          = new AlarmSystemDetailModel(provider.Get());
                model.ServerId = DeviceId;
            }
            catch (Exception e)
            {
                _logger.Error(e, e.Message);
            }

            return(View(model));
        }