예제 #1
0
        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;
        }
예제 #2
0
 public ActionResult PostRecipe(Recipe ipRecipe)
 {
     return View("DisplayRecipe", ipRecipe);
 }