public HttpResponseMessage Post(AgentConfiguration agentConfiguration) { if (agentConfiguration == null) { throw new HttpResponseException(HttpStatusCode.BadRequest); } if (agentConfiguration.IsValid() == false) { throw new HttpResponseException(HttpStatusCode.NotAcceptable); } this.agentConfigurationService.SaveAgentConfiguration(agentConfiguration); return new HttpResponseMessage(HttpStatusCode.NoContent); }