Example #1
0
        public static List <IngredientByRecipe> GetIngredientsInRecipe(int recipeId)
        {
            var database = new SQLiteDataService();

            database.Initialize();
            var ingredientsByRecipeList = database.GetIngredientsByRecipe(recipeId);

            database.Close();
            return(ingredientsByRecipeList);
        }