public async Task DrinkSelectedAsync(DrinkRecipeViewModel drinkRecipeViewModel) { var selection = new List <string>() { "Edit", "Delete", "Make drink" }; var result = await _userInteraction.DisplayActionSheetAsync($"{drinkRecipeViewModel.Name} selected!", "Cancel", null, selection.ToArray()); if (result == null) { return; } if (result.Equals("Edit")) { var parmeter = new TypedParameter(typeof(DrinkRecipeViewModel), drinkRecipeViewModel); await _navigationService.PushAsync <EditDrinkRecipePageViewModel>(parmeter); } else if (result.Equals("Delete")) { await _drinkRecipeRepository.DeleteAsync(drinkRecipeViewModel.DrinkRecipe); Drinks.Remove(drinkRecipeViewModel); } else if (result.Equals("Make drink")) { if (!_bluetoothService.IsConnected()) { await _userInteraction .DisplayAlertAsync("Info", "Cannot send data to the cocktail machine. \n" + "You are not connected with the bluetooth module of the cocktail machine. \n" + "Navigate back to the welcomepage and connect with the device!", "Ok"); return; } await TransmitAsync(drinkRecipeViewModel); } }