Beispiel #1
0
        private static Recipe CreateRecipe(RecipeController recipeController)
        {
            Console.WriteLine("Создать рецепт");
            Recipe recipe = recipeController.CreateRecipe();

            recipeController.GetRecipes().Add(recipe);
            recipeController.SaveRecipes();
            return(recipe);
        }