public ActionResult SetSettings([FromBody] SettingsDto settingsDto) { _settings.LogPollInterval = settingsDto.LogPollInterval > 0 ? settingsDto.LogPollInterval : _settings.LogPollInterval; _settings.OutputLogPath = string.IsNullOrEmpty(settingsDto.OutputLogPath) ? _settings.OutputLogPath : settingsDto.OutputLogPath; _settings.GameDataPath = string.IsNullOrEmpty(settingsDto.GameDataPath) ? _settings.GameDataPath : settingsDto.GameDataPath; _logWatcher.ChangeInterval(_settings.LogPollInterval); _settings.AssertOutputLogPathValid(); _settings.AssertGameDataPathValid(); return(NoContent()); }