public async Task <ActionResult> Edit(AlarmSystemDeviceModel model)
 {
     try
     {
         this._provider = new DeviceConfigService(DomainSession.GetAlarmConfigForContextSession(this.HttpContext));
         if (ModelState.IsValid)
         {
             var res = (_provider.Update(model.Device));
             model.Result = StatusResponseGenerator.GetStatusResponseResultForReturnParam(res);
         }
     }
     catch (Exception e)
     {
         model.Result = StatusResponseGenerator.GetRequestResponseCriticalError();
     }
     return(View(model));
 }
예제 #2
0
 private void SaveData()
 {
     _provider.Update(Config);
 }