Esempio n. 1
0
        public IActionResult Set(DiagnosticsSettings newSettings)
        {
            if (newSettings == null)
            {
                return(StatusCode(StatusCodes.Status400BadRequest));
            }

            _settingsManager.UpdateSettings(newSettings);

            return(NoContent());
        }
Esempio n. 2
0
        public HttpResponseMessage Set(DiagnosticsSettings newSettings)
        {
            if (newSettings == null)
            {
                return(Request.CreateResponse(HttpStatusCode.BadRequest));
            }

            _settingsManager.UpdateSettings(newSettings);

            return(Request.CreateResponse(HttpStatusCode.NoContent));
        }