예제 #1
0
        // GET: ConfigurationSelect
        public ActionResult ConfigurationSelect(int DeviceId)
        {
            AlarmSystemGlobalModel model = new AlarmSystemGlobalModel();

            model.ServerId = DeviceId;
            return(View(model));
        }
예제 #2
0
 public ActionResult Index(int ServerId)
 {
     try
     {
         this._provider = new GlobalConfigService(DomainSession.GetAlarmConfigForContextWithDeviceId(this.HttpContext, ServerId));
         AlarmSystemGlobalModel model = new AlarmSystemGlobalModel(this._provider.Get());
         model.ServerId = ServerId;
         return(View(model));
     }
     catch (Exception e)
     {
         _logger.Error(e, e.Message);
     }
     return(View());
 }