public override async Task <List <SettingValue> > GetAllAsync(SettingDefinition[] settings)
        {
            if (CurrentUser.Id == null)
            {
                return(settings.Select(x => new SettingValue(x.Name, null)).ToList());
            }

            return(await SettingStore.GetAllAsync(settings.Select(x => x.Name).ToArray(), Name, CurrentUser.Id.ToString()));
        }
Example #2
0
 public override Task <List <SettingValue> > GetAllAsync(SettingDefinition[] settings)
 {
     return(SettingStore.GetAllAsync(settings.Select(x => x.Name).ToArray(), Name, null));
 }
Example #3
0
 public override async Task <List <SettingValue> > GetAllAsync(SettingDefinition[] settings)
 {
     return(await SettingStore.GetAllAsync(settings.Select(x => x.Name).ToArray(), Name, CurrentTenant.Id?.ToString()));
 }