Пример #1
0
        public IActionResult Index()
        {
            var recipe = recipeDatabase.GetRecipe(1);

            return(View(recipe));
        }
Пример #2
0
        public IActionResult Get(int id)
        {
            var recipe = recipeDatabase.GetRecipe(id);

            return(new JsonResult(recipe));
        }