Esempio n. 1
0
        public static void DeleteRecipes(List <RecipeViewModel> recipesToDelete)
        {
            var database = new SQLiteDataService();

            database.Initialize();
            recipesToDelete.ForEach(recipeView =>
            {
                AllUsersRecipes.Remove(recipeView);
                database.DeleteRecipe(recipeView.GetRecipe());
            });
            database.Close();
        }