コード例 #1
0
 private void SaveData()
 {
     foreach (var item in Config)
     {
         _provider.Update(item);
     }
 }
コード例 #2
0
 public async Task <ActionResult> Edit(AlarmSystemGsmAddRcptModel model)
 {
     try
     {
         this._provider = new GsmConfigurationService(DomainSession.GetAlarmConfigForContextSession(this.HttpContext));
         if (ModelState.IsValid)
         {
             var res = (_provider.Update(model.GsmRcpt));
             model.Result = StatusResponseGenerator.GetStatusResponseResultForReturnParam(res);
         }
     }
     catch (Exception e)
     {
         model.Result = StatusResponseGenerator.GetRequestResponseCriticalError();
     }
     return(View(model));
 }