private async Task AddItemAsync(BaseBingMapEntity baseBingMapEntity) { try { await JSRuntime.Current.InvokeAsync <object>($"{_mapNamespace}.addItem", Id, baseBingMapEntity); } catch (Exception e) { Console.WriteLine(e); } }
private async void EntitiesRemoved(object sender, BaseBingMapEntity removed) { try { await JSRuntime.Current.InvokeAsync <object>("rpedrettiBlazorComponents.bingMaps.map.removeItem", Id, removed); } catch (Exception e) { Console.WriteLine(e); } }
private async Task UpdateItemAsync(BaseBingMapEntity baseBingMapEntity) { try { await JSRuntime.Current.InvokeAsync <object>("rpedrettiBlazorComponents.bingMaps.map.updateItem", Id, baseBingMapEntity); } catch (Exception e) { Console.WriteLine(e); } }