Пример #1
0
        /**
         * A full recipe is retirved from the database using the id from the path as the name of the recipe
         *
         */
        public ActionResult SeeRecipe(String id)
        {
            FullRecipe objectToPass;

            if (id == "" || id == null)
            {
                objectToPass = new FullRecipe();
            }
            else
            {
                objectToPass = RecipeDAO.GetFullRecipe(id);
            }

            // send ther recipe with image object to the view
            return(View(objectToPass));
        }