示例#1
0
        private async Task <PermissionSettingsEditDto> GetPermissionSettingsAsync()
        {
            var settings = new PermissionSettingsEditDto()
            {
                Create = await SettingManager.GetSettingValueForApplicationAsync <bool>(YtSettings.General.UserDefaultActive)
            };

            return(settings);
        }
示例#2
0
 private async Task UpdatePermissionAsync(PermissionSettingsEditDto settings)
 {
     await SettingManager.ChangeSettingForApplicationAsync(YtSettings.General.PermissionDefaultActive, settings.Create.ToString());
 }