public object BindModel(ControllerContext controllerContext, ModelBindingContext bindingContext) { var form = controllerContext.HttpContext.Request.Form; var rName = form["rName"]; var rContent = form["rContent"]; var recipe = new Recipe { Name = rName, Content = rContent }; return recipe; }
public ActionResult PostRecipe(Recipe ipRecipe) { return View("DisplayRecipe", ipRecipe); }