IDictionary<string, string> IConfigService.GetValues(ConfigName[] configNames) { var names = configNames.Select(x => x.ToString()); var configs = this.db.Configs.Where(x => names.Contains(x.Key)); return configs.ToDictionary(x => x.Key, x => x.Value); }
string IConfigService.GetValue(ConfigName name) { var config = this.db.Configs.FirstOrDefault(x => x.Key.Equals(name.ToString())); if (config != null) { return config.Value; } return null; }
string IConfigService.GetValue(ConfigName name) { var config = this.db.Configs.FirstOrDefault(x => x.Key.Equals(name.ToString())); if (config != null) { return(config.Value); } return(null); }