public IActionResult Add(AddConfigurationWriteModel model) { if (!this.ModelState.IsValid) { return(this.BadRequest()); } configurationsManager.Add(new ConfigurationWriteModel { Name = model.Name, Components = model.Components }); return(this.Ok()); }