Esempio n. 1
0
        public ActionResult Create(int id, string step)
        {
            Recipe foundRecipe = Recipe.Find(id);
            Method newMethod   = new Method(step);

            newMethod.Save();
            newMethod.AddRecipe(foundRecipe);
            return(RedirectToAction("MethodForm", new { id = foundRecipe.Id }));
        }