public GlobalSetting(string displayName, string name, string value, string group, string description, GlobalSettingScope scope) : this(name, value) { this.DisplayName = displayName; this.Group = group; this.Description = description; this.Scope = scope; }
public async Task <string> GetValueAsync(string name, GlobalSettingScope scope = GlobalSettingScope.Application) { return(await Task.FromResult(GlobalSettings.FirstOrDefault(x => x.Name == name && x.Scope == scope)?.Value)); }