Exemplo n.º 1
0
        // GET: Recipes
        //with this view we will display the products that are included in one specific recipre
        //this method gets the id of the junction table in order to trace the recipe and the corresponding products

        public ActionResult Index(int?productRecipeId)
        {
            var recipeDetailsVM = new RecipeDetailsVM();

            return(RedirectToAction("Index", new { productRecipeId = productRecipeId, recipeDetailsVM = recipeDetailsVM }));
        }