Pass treenode Id after click contextmenu in jstree

In the asp.net core 5 , i used from jstree and have dynamic treeview. so i have 3 views for Create,Delete,Edit. How can i pass my selected node's id after click contextmenu in the edit view ?

my codes:

function customMenu(node) { return { EditItem: { "label": "EditItem", "action": function (obj) { window.location.href = '@Url.Action("Edit", "Province", new { id = ? })';

enter image description here

enter image description here

enter image description here