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)); }
private void SaveData() { _provider.Update(Config); }