public void CreateRecipe(string name, List <IingredientLine> ingredientsData, string instructions) { int recipeID = db.CreateRecipe(ID, name, ingredientsData, instructions); Recipe recipe = new Recipe(name, instructions, ingredientsData, recipeID); _recipes.Add(recipe); }