示例#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));
        }