Exemplo n.º 1
0
        // GET: recipes/detail/1
        // GET: recipes/detail/3
        // GET: recipes/detail?id=1
        // GET: recipes/detail?id=3
        public IActionResult Detail(int id)
        {
            IRecipeDAL dal    = new MockRecipeDAL();
            Recipe     recipe = dal.GetRecipe(id);

            return(View(recipe));
        }
Exemplo n.º 2
0
        // GET: recipes/table
        public IActionResult Table()
        {
            IRecipeDAL     dal     = new MockRecipeDAL();
            IList <Recipe> recipes = dal.GetRecipes();

            return(View(recipes));
        }