private async Task <PermissionSettingsEditDto> GetPermissionSettingsAsync() { var settings = new PermissionSettingsEditDto() { Create = await SettingManager.GetSettingValueForApplicationAsync <bool>(YtSettings.General.UserDefaultActive) }; return(settings); }
private async Task UpdatePermissionAsync(PermissionSettingsEditDto settings) { await SettingManager.ChangeSettingForApplicationAsync(YtSettings.General.PermissionDefaultActive, settings.Create.ToString()); }