public ActionResult Config(int id, Config config) { SysUpdateHelper.UpdateDetect(id, enabled: config.DetectEnabled); SysUpdateHelper.SaveSystemConfig(id, config); return(RedirectToAction(nameof(SystemList))); }
public ActionResult Config(int id, Config config) { SysUpdateHelper.UpdateDetect(id, enabled: config.DetectEnabled); SysUpdateHelper.SaveSystemConfig(id, config); return(RedirectToAction(nameof(SystemList))); }