I have a second page that receives the following parameter:
@page "/newrecord/{Employees}"
@inject HttpClient http
<h1>@Employees.Count</h1>
@code {
[Parameter]
public List<Model.Employees> Employees{ get; set; }
}
On my main page Im passing the list when clicking a button like this:
List<Model.Employees> selected { get; set; }
private void OnAddRecord()
{
NavigationManager.NavigateTo($"newrecord/{this.selected}");
}
When the button is clicked I get an error and I can see the URL is being formed like this:
How can I pass this object to the second page? Do I have to use maybe LocalStorage? Or use other type of object?
