private void DeleteExecute() { if (recipe != null) { MessageBoxResult result = MessageBox.Show("Do you realy want to delete this Recipe?", "Delete Report", MessageBoxButton.YesNo); if (result == MessageBoxResult.Yes) { service.DeleteRecipe(recipe); IsDeleted = true; MessageBox.Show("Recipe is deleted.", "Notification", MessageBoxButton.OK); RecipeList = service.GetAllRecipes(); } } else { MessageBox.Show("Please select the recipe that you want to delete."); } }