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