コード例 #1
0
        public IActionResult Edit(AddConfigurationWriteModel model)
        {
            if (!this.ModelState.IsValid)
            {
                return(this.BadRequest());
            }

            configurationsManager.Update(new ConfigurationWriteModel
            {
                Id         = model.Id,
                Components = model.Components,
                Name       = model.Name
            });

            return(this.Ok());
        }