Exemple #1
0
        public ActionResult Index(ViewResultTestModel model)
        {
            if (ModelState.IsValid)
            {
                TempData["Message"] = "您輸入的姓名為 " + model.Name;

                return(RedirectToAction("Index"));
            }
            else
            {
                return(View());
            }
        }
        public ActionResult PartialViewResultTest3()
        {
            var data = new ViewResultTestModel();

            return(PartialView("ViewResultTest1", data));
        }