private void RevokeConsent() { ShowActiveConsents(); Console.WriteLine("Enter permissionID to revoke corresponding consent"); string permissionID = Console.ReadLine(); Console.WriteLine(ConsentAPI.RevokeConsent(Convert.ToInt32(userID), Convert.ToInt32(permissionID))); }
private void RevokeConsent() { ShowAllPermissions(); Console.WriteLine("Enter permissionId"); string permissionID = Console.ReadLine(); Console.WriteLine(ConsentAPI.RevokeConsent(Convert.ToInt32(this.userID), Convert.ToInt32(permissionID))); }
private void btnRemoveConsent_Click(object sender, RoutedEventArgs e) { ConsentAPI.RevokeConsent(_viewModel.SelectedConsent.UserID, _viewModel.SelectedConsent.PermissionID); _viewModel.ClearConsentList(); this.Close(); }