Exemple #1
0
 private void Validate(Entity.Configuration configuration)
 {
     if (configuration == null)
     {
         throw new NotFoundException($"Configuration not found");
     }
 }
Exemple #2
0
        private void UpdateConfiguration(Entity.Configuration configuration,
                                         UpdateConfigurationDto updatedConfiguration)
        {
            configuration.Key      = updatedConfiguration.Key;
            configuration.Value    = updatedConfiguration.Value;
            configuration.IsActive = updatedConfiguration.IsActive;

            _context.Configurations.Update(configuration);
        }