// GET: ConfigurationSelect public ActionResult ConfigurationSelect(int DeviceId) { AlarmSystemGlobalModel model = new AlarmSystemGlobalModel(); model.ServerId = DeviceId; return(View(model)); }
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()); }