@page "/map" @inject HttpClient Http

Map

@code { public List Contacts { get; set; } = new List(); protected override async Task OnInitializedAsync() { var result = await Http.GetFromJsonAsync>("api/contacts/map"); if (result is not null) { Contacts = result; } } }