public IActionResult Index() { var recipe = recipeDatabase.GetRecipe(1); return(View(recipe)); }
public IActionResult Get(int id) { var recipe = recipeDatabase.GetRecipe(id); return(new JsonResult(recipe)); }