public async void AddItem() { InventoryEntry result = await _dialogService.ShowModalDialogAsync <AddToInventoryViewModel, InventoryEntry>(); if (result != null) { _settings.AddToInventoryItems(result); } }