public static List <IngredientByRecipe> GetIngredientsInRecipe(int recipeId) { var database = new SQLiteDataService(); database.Initialize(); var ingredientsByRecipeList = database.GetIngredientsByRecipe(recipeId); database.Close(); return(ingredientsByRecipeList); }