Deleting items from dynamic list ASP Core MVC

I’m trying to remove or hide items from a list and I’m facing two problems, 1- the newly cannot be removed, 2- Tried to tag the deleted items as isDeleted = true using Javascript then later delete them in the controller following this answer https://stackoverflow.com/a/40572625/10773318 but it didn’t work.

How can I post a checkbox value to a controller that saves value to session?

I have the following code on checkbox click to get the checkbox value of the checkbox showHideDeletedRps and pass true or false to a controller var rpInfo = await rpService.GetRPByID(id, showDeleted);, I tried the following but it doesn’t keep the selected value or doesn’t update on checkbox change.

Blazor WASM Authorization not working with AAD Roles

I am trying to set up AAD Authorization based on user defined roles following this doc https://docs.microsoft.com/en-us/aspnet/core/blazor/security/webassembly/azure-active-directory-groups-and-roles?view=aspnetcore-3.1#user-defined-roles I am able to set it up in the app manifest and get the API authorization working. However when I try to do it on the UI side I cannot get the claim to appear. I did the json interpreting classes (DirectoryObjects, CustomUserAccount and Value(used by directory object)). I also added the CustomUserFactory removing the group stuff since I only care about roles: