标签:
问题代码:
[AcceptVerbs(HttpVerbs.Post)] public ActionResult Manager(PocRequest model)//需要把model 换成PocRequest(大小写无所谓) { if (ModelState.IsValid) { db.Update(pocRequest); db.SaveChanges();
return RedirectToAction("Index", "AgilePoint/TaskPage"); } return View(new PocRequestFormViewModel(pocRequest)); }
ASP.NET MVC Action的参数名与参数类型不一致,取不到Request数据
标签:
原文地址:http://www.cnblogs.com/puxian/p/4977933.html