0
In the method .each( it is possible to pick up the position of the array index and value it contains value.
.each( function (index,value)
In the first interaction index equal 0 and value equal {UserPermissionId : 7}
So you can give one value.UserPermissionId to get the value 7
I hope I helped, good luck.


Wasn’t you supposed to be doing
permissionSalve.PermissionId = item;?– Andre
Exactly, but now he’s just saving the last item on the list at the bank.
– Eliseu Oliveira
I didn’t see all the code, but I don’t understand why
Deserialize, if you pass the javascript parameter correctly no need to say, the method should acceptList<long>as a parameter– Ricardo Pontual