public async void AddItemType() { GroceryItemType result = await _dialogService.ShowModalDialogAsync <AddGroceryItemTypeViewModel, GroceryItemType>(); if (result != null) { _settings.AddToGroceryTypes(result); } }