I have a page with routes:
@page "/Administration/Security/UserAccounts"
@page "/Administration/Security/UserAccounts/{id?}"
first route works but if I use
NavigationManager.NavigateTo($"/Administration/Security/UserAccounts/1");
I get a message saying unable to cast parameter?????
I set up my parameter as a long
@code {
[Parameter]
public long? Id { get; set; }
}
i tried with an int too same thing
I also tried
@page "/Administration/Security/UserAccounts/{id}"
without a question mark