/// <summary>
        /// Get all the Ingredient lines for a recipe
        /// </summary>
        /// <param name="id">The id of the recipe</param>
        private void GetRecipeLines(int? id)
        {
            var viewModel = new RecipeViewModel();
            viewModel.RecipeModels = db.Recipes
                .Include(i => i.RecipeLines);

            if (id != null)
            {
                ViewBag.RecipeId = id.Value;
                // Get all the RecipeLines for the selected value.
                viewModel.RecipeLines = viewModel.RecipeModels.Where(i => i.RecipeId == id.Value).Single().RecipeLines;
            }
        }
        public ActionResult Index(int? id)
        {
            var viewModel = new RecipeViewModel();
            viewModel.RecipeModels = db.Recipes
                .Include(i => i.RecipeLines);

            if (id != null)
                {
                ViewBag.RecipeId = id.Value;
                // Get all the RecipeLines for the selected value.
                viewModel.RecipeLines = viewModel.RecipeModels.Where(i => i.RecipeId == id.Value).Single().RecipeLines;
                }

            return View(viewModel);
        }