private void GetData() { try { Config = _provider.Get(); } catch (Exception ex) { _nlogger.Error(ex, ex.Message); } }
// 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)); }